38) An abstract class is A) one that has all its member variables declared priva
ID: 3597046 • Letter: 3
Question
38) An abstract class is A) one that has all its member variables declared private B) one that has at least one pure virtual function C) one that has all its member functions declared protected D) one that has all its member functions declared private 39) A pure virtual function A) is a virtual function that has been completely debugged B) is a virtual function with no implementation C) is one called from within a virtual constructor D) is a virtual function that can only return a single variable E) None of the above 40) In the statement template what does T represent? A) The "int" date type B) A generic data type that is used in the function template C) T stands for "template." D) The name of the function template E) None of the above 41) If, in a linked list, the head pointer points to NULL, it is an indication that A) The list contains no nodes B) The list is full and can accept no new nodes C) The list needs to be destroyed D) an error has occurred E) None of the aboveExplanation / Answer
38. An abstract class is one which has at least one pure virtual function that is needed to be implemented by child class. So b) is the answer
39. A pure virtual function is a function which has no implementation. it is part of abstract class. So B) is the answer.
40. template <class T> is used to make functions generic. Here T represents a data type which can be defined during runtime. So B) is the answer.
41. If head is pointing to null it, means the list is empty. So A) is correct option
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.