Question: Chapter 12 Support for Object-Oriented Programming of Concepts of Programming Languages MCQ 30. What is NOT true about abstract classes and abstract methods? A. Abstract
Chapter 12 Support for Object-Oriented Programming of Concepts of Programming Languages MCQ
30. What is NOT true about abstract classes and abstract methods?
A. Abstract classes cannot be instantiated as is
B. Abstract classes must define their declared methods
C. An abstract class must have at least one abstract method
D. Instantiated classes of abstract classes must define all abstract methods
E. Abstract classes must include at least one concrete method
31. What is a primary purpose for the use of nested classes?
A. Abstraction
B. Information hiding
C. Inheritance
D. Polymorphism
E. Subtyping
32. In C++, what operator is used to explicitly deallocate heap-dynamic objects?
A. deallocate
B. delete
C. new
D. remove
E. free
33. In the C++ definition of an inherited class, the name of the inherited class has the name of the base class attached with what symbol?
A. Ampersand
B. Colon
C. Comma
D. Semicolon
34. In C++, how many constructors are required to be defined explicitly in a class definition?
A. Zero
B. One
C. Three
D. Two
E. at least one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
