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

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

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

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

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

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

9 − 7 =