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
Answers for C++ Course using "Starting out with C++ : from control structures through objects" by Tony Gaddis. 7/8th ed. I used the Pearson myprogramminglab to complete the homework. Here are my solutions/answers for the exercises/labs so please use the test bank as a GUIDE if you're stuck. Let me know if you find a better solution to a problem or any of the programming challenges. Thanks in advance for your support! Send in missing programming challenges to cplusplus.answers@gmail.com
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
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
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
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
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
a. C++ is object-oriented
b. C is object-oriented
c. C can run all C++ programs
d. All of the above
Subscribe to:
Posts (Atom)