Engineering Problem Solving with C++, 3e Chapter 3 Test Bank
5. Which of the following operators is a relational operator
A. !
B. &&
C. =
D. <=
6. Which of the following operators is a logical operator
A. !
B. &&
C. =
D. <=
7. Which of the following operators has the highest precedence?
A. !
B. &&
C. =
D. <=
8. The operator = is used to determine whether the left hand operand is equivalent to the right
hand operand.
A. True
B. False
9. The value which follows the word case in a switch statement can be of type integer or
character.
A. True
B. False
10. The operands of the operator || must both be Boolean values.
A. True
B. False
11. A blank space can be placed between the ampersands in the logical operator && to make it
more readable.
A. True
B. False
12. Linear interpolation is used to …
A. approximate a value outside of the range of known data values by determining a line
which best fits the entire data set.
B. approximate a value outside of the range of known data values by extending the line
which connects the last two known data points.
C. approximate a value inside of the range of known data values by determining a line
which best fits the entire data set.
D. approximate a value inside of the range of know data values by connecting adjacent
points in the data set with a line.