

MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which is the correct statement about pure virtual functions? |
A. | They should be defined inside a base class |
B. | Pure keyword should be used to declare a pure virtual function |
C. | Pure virtual function is implemented in derived classes |
D. | Pure virtual function cannot implemented in derived classes |
E. | |
Answer» D. Pure virtual function cannot implemented in derived classes | |
2. |
We can make an instance of an abstract super class |
A. | TRUE |
B. | FALSE |
C. | Can be true and false |
D. | Can not say |
Answer» C. Can be true and false | |
3. |
We cannot make an instance of an abstract base class |
A. | TRUE |
B. | FALSE |
C. | Can be true and false |
D. | Can not say |
Answer» B. FALSE | |
4. |
Classes that can be used to instantiate objects are called? |
A. | concrete classes |
B. | interface |
C. | abstract class |
D. | None of the above |
Answer» B. interface | |
5. |
A pure virtual function is specified by placing? |
A. | -1 |
B. | 0 |
C. | 1 |
D. | infinite |
Answer» C. 1 | |
6. |
A class is made abstract by declaring at least one of its functions as? |
A. | impure virtual function |
B. | pure virtual function |
C. | pure abstract function |
D. | impure abstract function |
Answer» C. pure abstract function | |