Object Oriented Programming Using C++ – Section 3


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

16. Functions that returns information about an object’s state can be classified as ________

A. inspector functions
B. mutator functions
C. auxiliary functions
D. manager functions

Correct Answer:  A. inspector functions
Advertisement

17. An auxiliary function _____

A. return information about data members
B. changes the state of data members
C. performs an action or service
D. creates and destroys objects

Correct Answer:  C. performs an action or service
Advertisement

18. To create and execute a C++ program, you need to have access to

A. a C++ compiler
B. a C++ translator
C. an object code editor
D. a text editor
E. both (a) and (d)

Correct Answer:  E. both (a) and (d)
Advertisement

19. If you omit any constructor argument when you instantiate an object, you must use default values______

A. for all parameters to the constructor
B. for all parameters to the right of the argument
C. for all parameters to the left of the argument
D. for no other parameters

Correct Answer:  B. for all parameters to the right of the argument
Advertisement

20. Many programmers separate a class into two files: _____

A. one for the declarations and one for the implementations
B. one for the void functions and one for the other functions
C. one for the public data and one for the private data
D. one for the primary functions and one for the auxiliary functions

Correct Answer:  A. one for the declarations and one for the implementations
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?