Object Oriented Programming Using C++ – Section 4


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

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

Warning: Undefined variable $in_same_cat in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?