Object Oriented Programming Using C++ – Section 4

6. The prototype for a derived class constructor may include arguments for

A. data members of the derived class
B. data members of the base class
C. both (a) and (b)
D. neither (a) nor (b)

Correct Answer: C. both (a) and (b)

7. Overloading involves writing two or more functions with ________

A. different names and different argument lists
B. different names and the same argument list
C. the same name and different argument lists
D. the same name and the same argument list

Correct Answer: C. the same name and different argument lists

8. You___________overload function templates

A. may, as long as each version has the same arguments
B. may, as long as each version has different arguments
C. must
D. must not

Correct Answer: B. may, as long as each version has different arguments

9. You typically initialize Character variables to _____

A. a space enclosed in double quotes
B. a space enclosed in single quotes
C. the letter O
D. the number 0
E. the value false

Correct Answer: B. a space enclosed in single quotes

10. One way pointers are useful is to refer to a memory address that has no _____

A. name
B. constant
C. location
D. field

Correct Answer: A. name

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

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

Leave A Comment?