True/False Indicate whether the
statement is true or false.
|
|
|
1.
|
The C++ initialization operator changes the value of the variable to the
left of the operator.
|
|
|
2.
|
C++ allows variables of different data types to be initialized in a single
program statement.
|
|
|
3.
|
The assignment operator can be used in a variable declaration statement
to declare and initialize the variable in one statement.
|
|
|
4.
|
The C++ division operator symbol is the backward slash (\).
|
|
|
5.
|
The minus sign (-) can be used to change the sign of a variable or value.
|
|
|
6.
|
The C++ assignment operator functions the same way the equal sign
functions in algebra.
|
|
|
7.
|
Including arithmetic operations in output statements can save memory and result
in fewer programming statements being written.
|
|
|
8.
|
You should not include calculations in output statements if you will need to
access or process the result of the calculation later in the program.
|
|
|
9.
|
Programs that will perform divide operations do not need to include code to
check for division by zero since it is always trapped and corrected by the compiler.
|
|
|
10.
|
In the statement, x = --y; the value assigned to x will be one
less than the current value of y.
|
|
|
11.
|
Parentheses can be used in an expression to change the order of
operations.
|