Computer Science - Object Oriented Programming Using C++

21. 

Files whose names end in .h are called _____ files

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

24. 

Inheritance occurs when a class adopts all the traits of _________

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.