Object Oriented Programming Using C++ – Section 4

11. A member function uses the correct object when you call it because

A. a copy of the object is passed to the function
B. the address of the object is passed to the function
C. the address of the function is passed to another function
D. the address of the object is returned from the function

Correct Answer: B. the address of the object is passed to the function
Advertisement

12. Two access specifiers in C++ are

A. public and private
B. int and double
C. formal and informal
D. void and free

Correct Answer: A. public and private
Advertisement

13. Which of the following is the fourth problem-solving step?

A. analyze the problem
B. evaluate and modify (if necessary) the program
C. code the algorithm
D. plan the algorithm
E. desk-check the program

Correct Answer: C. code the algorithm
Advertisement

14. Within parentheses, catch blocks can have _____

A. no arguments
B. one argument
C. two arguments
D. as many arguments as necessary

Correct Answer: B. one argument
Advertisement

15. The while loop is referred to as a(n) _____ loop because the loop condition is tested at the beginning of the loop

A. beginning
B. initial
C. pretest
D. priming

Correct Answer: C. pretest
Advertisement

Leave A Comment?