Computer Science - Object Oriented Programming Using C++

21. 

The most common operation used in constructors is _____

A. addition
B. overloading
C. assignment
D. polymorphism

Answer: Option C

Explanation:

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

22. 

When a function performs tasks based on a decision, it has _____

A. functional cohesion
B. coincidental cohesion
C. logical cohesion
D. no cohesion

Answer: Option C

Explanation:

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

23. 

To create a template class, you begin with _________

A. the template definition
B. the keyword class
C. the function definitions
D. the keyword definition

Answer: Option A

Explanation:

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

24. 

Which of the following is a C++ object?

A. >>
B. read()
C. cin
D. iostream

Answer: Option C

Explanation:

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

25. 

A variable is _____

A. an item of data
B. a memory location whose value can change while the program is running
C. a memory location whose value cannot change while the program is running

Answer: Option B

Explanation:

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