Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer all questions Q8: Which of the following is not true of a constructor and destructor of the same class? a. They both have

image text in transcribedPlease answer all questions
Q8: Which of the following is not true of a constructor and destructor of the same class? a. They both have the same name aside from the tilde (-)character. b. They are both usually called once per object created c. They both are able to have default arguments d. Both are called automatically, even if they are not explicitly defined in the class. Q9: How can Class A with an instance of an object of class B can change the values of private data members of Class B: a. Only possible by calling private member functions. b. Possible using public functions and references c. Never possible. d. Only possible if the private variables are not declared inside the class. Q10: If the line: friend class A; appears in class B, and the line: friend elass B; appears in class C, then: a. Class A is a friend of class C. b. Class A can access private variables of class B c. Class C can call class A's private member functions. d. Class B can access class A's private variables. Q11: In a circularly linked list, we navigate through the list using: a. Head pointer b. Tail pointer c. Both Head and Tail pointers d. Cursor Q12: Which of the following is not a kind of inheritance in C++7 a. public. b. private. c. static d. protected. Q13: Which of the following is most likely a base class of the other three? a. automobile. b. convertible. c. minivan. d. sedan Q14:: Class templates: a. b. c. d. May include the statement templates typename Type> anywhere. Must put templatec typename Type > before the class definition. Must include templatec typename Type > inside the class definition. Have the option of including the optional statement template. Q15: the head pointer points to NULL, it is an indication that a. the list is full and cannot accept any new nodes. b. the list has been destroyed c. the list needs to be destroyed d. there are no nodes in the list e. None of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions