Chapter 2: Review Questions =========================== :: 1. The C and C++ languages is generally considered to be a a) high-level language b) mid-level language c) low-level language d) multiple-level language 2. Which function is the entry point of a C or C++ program? a) #include "stdio.o" b) printf() c) #include "stdio.h" d) main() 3. The values placed within the parentheses of a function are called: a) arguments b) statements c) escape sequence d) include statement 4. '\n' represents: a) a comment b) a rubout character c) a function d) an escape sequence 5. stdio.h stands for: a) standard input/output data handler b) standard task definition input/output c) standard input/output header file d) standard task definition in/out handler 6. Which of the following terms is related to a location in the computer's memory that may assume any value? a) constant b) variable c) data type d) escape sequence 7. Which of the following terms describes data that remains the same thoughout a program? a) constant b) variable c) integer d) float 8. Which data type uses the most memory and provides the more precision? a) float b) char c) int d) double 9. Which data type does not support fractional values? a) float b) int c) long float d) double 10. Which data type requires only one byte of memory? a) char b) int c) float d) double 11. Which data type would you declare if you expect an integer value to remain very small? a) char b) double c) short d) short float 12. Which data type would you declare if you expect the results of the computation to be less than -32,768 (i.e. -45,000 is less than -32,768)? a) int b) unsigned c) long d) long float 13. Which of the following are valid variable names? a) sam VALID INVALID b) SAM VALID INVALID c) hi_cost VALID INVALID d) 9%d4 VALID INVALID e) howdoyoudothis VALID INVALID 14. List 5 rules for forming variable names. 1. 2. 3. 4. 5. 15. List all possible data types. ( **All Basic data types along with their possible modifiers or qualifiers.) ** ______________________ _______________________ _______________________ _______________________ _______________________ _______________________ _______________________ _______________________ _______________________ _______________________