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

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

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

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


Correct Answer:  A. overloading

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

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

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

12 − 8 =