(A) 01
(B) 02
(C) 03
(D) 04
Category: C++ Programming Mcqs
C++ Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. C++ Programming Mcqs section will help users to prepare mcqs of C++ Programming for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their C++ programming portion from here.
How many types of inheritance are there in C++?
(A) 01
(B) 02
(C) 03
(D) 05
What is the syntax of inheritance of class?
(A) Class name
(B) Class name : access specifier
(C) Class name : access specifier class name
(D) None of the above
Which of the following OOP’s features to provide code reusability?
(A) Polymorphism
(B) Encapsulation
(C) Inheritance
(D) None of the above
Function that can be inherited from base class in C++ program?
(A) Destructor
(B) Constructor
(C) Static
(D) None of the above
Base class and derive class relationship comes under?
(A) Polymorphism
(B) Inheritance
(C) Encapsulation
(D) Abstraction
The data members and member functions of a class are by-default?
(A) Protected
(B) Private
(C) Public
(D) Both B & C
Which among following is a valid class declaration?
(A) Class A{}
(B) Class A{};
(C) Class A
(D) Class A();