Object Oriented Programming Using C++ – Section 3

21. Files whose names end in .h are called _____ files

A. handy
B. header
C. helper
D. helping

Correct Answer: B. header

22. When accessing a structure member, the identifier to the left of the dot operator is the name of

A. a structure member
B. a structure tag
C. a structure variable
D. the keyword struct

Correct Answer: C. a structure variable

23. Assume that a program contains a programmer-defined void function. When C++ encounters the function’s
closing brace (}), C++ returns to the statement _____

A. immediately above the statement that called the function
B. that called the function
C. immediately below the statement that called the function

Correct Answer: C. immediately below the statement that called the function

24. Inheritance occurs when a class adopts all the traits of _________

A. an object
B. a parent class
C. a variable
D. a function

Correct Answer: B. a parent class

25. Template classes that have already been written to perform common class tasks are called _____

A. container classes
B. receptacle classes
C. repository classes
D. alembic classes

Correct Answer: A. container classes

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?