Object Oriented Programming Using C++ – Section 1


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

41. Sending a copy of data to a program module is called _______

A. passing a value
B. making a reference
C. recursion
D. setting a condition

Correct Answer:  A. passing a value
Advertisement

42. Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program

A. reference, pointer
B. array, location
C. array, pointer
D. None of the above

Correct Answer:  A. reference, pointer
Advertisement

43. To use either an input or output file, the program must include the _____ header file

A. filestream.h
B. fstream.h
C. instream.h
D. inoutstream.h
E. iostream.h

Correct Answer:  B. fstream.h
Advertisement

44. A widget is to the blueprint for a widget as an object is to

A. a member function
B. a class
C. an operator
D. a data item

Correct Answer:  B. a class
Advertisement

45. C++ allows you to define the same functions more than once in the same program _____

A. if the definitions are identical
B. if the definitions are included in two separate #include files
C. if the definitions are located in a single #include file that is included more than once
D. C++ does not allow you to define the same functions more than once in the same program

Correct Answer:  D. C++ does not allow you to define the same functions more than once in the same program
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?