

MCQOPTIONS
Saved Bookmarks
This section includes 5 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. |
For Cat and Animal class, correct way of inheritance is |
A. | Class Cat: public Animal |
B. | Class Animal: public Cat |
C. | Both are correct way |
D. | None is correct way |
E. | |
Answer» B. Class Animal: public Cat | |
2. |
At what point of time a variable comes into existence in memory is determined by its |
A. | Data type |
B. | Storage class |
C. | Scope |
D. | All of the above |
Answer» C. Scope | |
3. |
|
A. | Yes, always |
B. | Yes, if program doesn't contain any classes |
C. | No, because main function is user defined |
D. | No, never |
Answer» E. | |
4. |
|
A. | Sir Richard Hadlee |
B. | Clocksin and Mellish |
C. | Donald E. Knuth |
D. | Bjame Stroustrup |
Answer» E. | |
5. |
The OOPs concept in C++, exposing only necessary information to users or clients is known as |
A. | Data hiding |
B. | Encapsulation |
C. | Hiding complexity |
D. | Abstraction |
Answer» E. | |