Question: 11. True or False? C++ does not have any built-in exceptions. a) True b) False 12. True or False? Polymorphism as the ability to determine

11. True or False? C++ does not have any built-in exceptions.

a) True

b) False

12. True or False? Polymorphism as the ability to determine which function to call for a particular object.

a) True

b) False

13. True or False? Inheritance is a language mechanism by which one class acquires data and operations of another class.

a) True

b) False Save

14. True or False? Static binding refers to run-time binding.

a) True

b) False

15. True or False? Dynamic binding refers to run-time binding.

a) True

b) False

16. True or False? In OOP, a subclass usually is "smaller" (containing fewer functions and less data) than its superclass.

a) True

b) False

17. True or False? The OOP term "instance variable" corresponds to the C++ term "class object."

a) True

b) False

18. True or False? In C++, if class X is a base class of class Y, then Y cannot directly access X's private data.

a) True

b) False

19. True or False? An inheritance hierarchy gives a visual picture of has-a relationships.

a) True

b) False

20. Given the declarations struct ListNode { float volume; ListNode* next; }; ListNode* ptr; what is the data type of the expression ptr->next->next->volume?

a) ListNode*

b) ListNode

c) Float

d) *ListNode

e) none--the expression is invalid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!