Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

ID: 3690124 • Letter: 1

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 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

Explanation / Answer

11)false because exception class is there and in built in exceptions are there eg.bad_alloc

12)true

13)true

14)false static means compilation time

15)true dynamic means running time

16)false the sub class may contain more functions than super class

17)false instance variacle can be a simple type but not mendetory to be a object

18)true

19)false

20)e the expression gives nothing and its may lead to an error

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote