Return to Topic Menu | Computer Science Main Page | MathBits.com | Terms of Use | Resource CD
Multiple Choice C++ Quiz Unit 2 - Data Basics
2. In C++, 14 % 4 =
3. Variables that are declared, but not initialized, contain
4. Array indexing always starts with the number
5. A character variable may contain up to seven letters.
6. All strings end with a null zero in memory.
7. In C++. 5 / 2 =
8. Variables with names that describe the data stored at that particular memory location are called
9. The name of a variable is known as its
10. The special class developed by the College Board to be used with strings is
11. In C++, the % refers to
12. A variable is given a value through
13. Variable names may begin with a number.
14. When a data type must contain decimal numbers, assign the type
15. Mathematicians and computers interpret the equal sign (=) in the same way.
16. setprecision requires the header file
17. The following statement is valid. double price = 7,450.98;
18. All variables must be declared before they can be used.
19. Character literals always have a length of one.
20. If char catname[15]; , which of the following is valid?