Chapter 2 Quiz Starting Out With C++ 005

5) When a variable is used to assign a value that will be the result of an expression, it will be changed to:

a. The smallest C++ data type
b. The largest C++ data type
c. The data type of the variable
d. The data type of the expression

Chapter 2 Quiz Starting Out With C++ 004

4) If you wanted to have a number being displayed in scientific notation, you may use the Fixed manipulator.

a. True
b. False

Chapter 2 Quiz Starting Out With C++ 003

3) The setprecision manipulator will be the exact number of digits to show before the decimal point in case of the fixed manipulator.

a. True
b. False

Chapter 2 Quiz Starting Out With C++ 002

2) When an object, that is used to enter data by the user, like the cin object, the following ___________must be with it.

a. compiler
b. iostream header file
c. linker
d. >> and << operators

Chapter 2 Quiz Starting Out With C++ 001

1) You can display in C++ the number 45.211 in a field of 9 spaces with 2 decimal places.

a. True
b. False

Chapter 1 Quiz Starting Out With C++ 027

Which statement is true

a. C++ is object-oriented
b. C is object-oriented
c. C can run all C++ programs
d. All of the above