Object Oriented Programming Using C++ – Section 8

11. When all of the operations in a function contribute to the performance of only one task, a function has

A. singular cohesion
B. tight cohesion
C. functional cohesion
D. sequential cohesion

Correct Answer:  C. functional cohesion
Advertisement

12. A function that uses variable types is called __________

A. overloaded
B. a template function
C. a variable function
D. a virtual function

Correct Answer:  B. a template function
Advertisement

13. Having more than one function with the same name is called

A. overloading
B. defaulting
C. casting
D. referencing

Correct Answer:  A. overloading
Advertisement

14. An object is _____

A. a category of classes
B. a name given to a class
C. an instance of a class
D. the same as a class

Correct Answer:  C. an instance of a class
Advertisement

15. Two access specifers in C++ are

A. public and private
B. int and double
C. formal and informal
D. void and free

Correct Answer:  A. public and private
Advertisement

Leave A Comment?