a. pure virtual function
b. derived class.
c. virtual function.
d. base class
The correct option is (a)
Explanation:
Classes that contain at least one pure virtual function are called as abstract base classes.
a. Logical.
b. Real.
c. Hypothetical.
d. Object
The correct option is (a)
Explanation:
Class is logical abstraction because it provides a logical structure for all of its objects
a. Only data
b. Only methods
c. Control and data
d. Classes
The correct option is (c)
Explanation:
Abstraction applies to both. Control abstraction involves use of subroutines and control flow abstraction.
a. Physical level
b. View level
c. Logical level
d. External level
The correct option is (d)
Explanation:
Abstraction is generally divided into 3 different levels, namely, logical, physical and view level.
a. impure virtual function.
b. pure abstract function.
c. impure abstract function
d. pure virtual function
The correct option is (b)
Explanation:
A class is made abstract by declaring at least one of its functions as pure virtual function
a. -1
b. 0
c. 1
d. 2
The correct option is (b)
Explanation:
A pure virtual function is specified by placing “= 0” in its declaration
a. interface.
b. abstract class
c. concrete classes
d. None of the above
The correct option is (c)
Explanation:
Classes that can be used to instantiate objects are called concrete classes.
a. The purpose of an abstract class is to provide an appropriate base class from which other classes can inherit.
b. Abstract classes cannot be used to instantiate objects and serves only as an interface
c. The C++ interfaces are implemented using abstract classes
d. All of the mentioned
The correct option is (d)
Explanation:
All the above mention is true
a. both derived & base class
b. derived class
c. base class only
d. virtual class
The correct option is (c)
Explanation:
As base class only as it helps in encapsulation of similar functioning of derived classes.