C++ Inheritance MCQs in Java Questions & Answers - 1
Question: 1
Private, public and protected are all ____
(A) Access specifiers
(B) C++ variables
(C) Control structures of C++
(D) Derived class members
Ans: A
Access specifiers
Question: 2
Which is not inherited from the base class?
(A) Data members
(B) Constructor
(C) Function
(D) Object
Ans: B
Constructor
Question: 3
When a class is derived by access specifier public, the protected members of base class are derived as ____ of derived class.
(A) Private members
(B) Public members
(C) Protected members
(D) None
Ans: C
Protected members
Question: 4
When a sub class inherits only from one base class, it is known as ___
(A) Single inheritance
(B) Double inheritance
(C) Hierarchical inheritance
(D) None
Ans: A
Single inheritance
Question: 5
In inheritance, the newly created classes are ___
(A) Function
(B) Super class
(C) Derived class
(D) Base class
Ans: C
Derived class
NEET Digestion and Absorption MCQ Questions 2026-2027 More
Zoology Quiz with Answers 2026-2027 Pdf More
NEET Biology Questions with Answers 2026-2027 Pdf More
General Awareness Questions and Answers 2026-2027 Pdf More
Biology MCQ Questions and Answers Pdf Class 10, 11, 12 More
COBOL Programming Online Quiz Questions More
Top 1000+ Bank Exams Question Papers with Answers Pdf More
English Language Questions for Bank Exams 2025-2026 More
Computer Awareness Online Test | Ebooks Free Download More
7000+ Punjab and Sind Bank SO 2023 - 2024 Free Mock Test More