Chapter 4 Quiz Starting Out With C++ 034

The potential round-off errors are common if the user is not careful when the user uses the equality operator to compare floating point values.

a. true
b. false

Chapter 4 Quiz Starting Out With C++ 033

What is the operator that can be used for the logical AND ?

a. &&
b. ++
c. ||
d. @
e. AND

Chapter 4 Quiz Starting Out With C++ 032

What is the value for a relational operation when it is not true?

a. one
b. zero
c. zero, one, or minus one
d. less than zero

Chapter 4 Quiz Starting Out With C++ 031

The following C++ statement will let the variable decide where the program will go to.

a. select
b. associative
c. scope
d. switch
e. none of the above

Chapter 4 Quiz Starting Out With C++ 030

When you use input values, the user should check for the following:

a. Appropriate range
b. Reasonableness
c. Division by zero, if division is taking place
d. All of these
e. None of the above

Chapter 4 Quiz Starting Out With C++ 029

An if statement considers true any value that is NOT 0 (ZERO)

a. true
b. false