Object Oriented Programming Using C++ – Section 9


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

1. Programmer-defined functions can be

A. value-returning functions only
B. void functions only
C. either value-returning or void functions

Correct Answer:  C. either value-returning or void functions
Advertisement

2. A class D can be derived from a class C, which is derived from a class B, which is derived from a class A

A. True
B. False

Correct Answer:  A. True
Advertisement

3. To use the strcpy function, you must include the _____ header file in your program

A. assign.h
B. copy.h
C. string.h
D. strcopy.h
E. strcpy.h

Correct Answer:  C. string.h
Advertisement

4. The number of the relational operators in the C language is

A. four
B. six
C. three
D. one
E. None of the above

Correct Answer:  B. six
Advertisement

5. Which of the following tells C++ to display numbers with two decimal places?

A. setdecimal(2)
B. setiosflags(2)
C. setiosflags(2.00)
D. setprecision(2)

Correct Answer:  D. setprecision(2
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?