(A) Using inheritance
(B) Using Virtual function
(C) Using templates
(D) Both A & B
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.
What is the other name used for functions inside a class?
(A) Class function
(B) Member function
(C) Member variable
(D) Data member
Which of the following class allows only to create single object?
(A) Abstract class
(B) Singleton class
(C) Virtual class
(D) Friend class
Wrapping data and function in a single unit is known as?
(A) Polymorphism
(B) Encapsulation
(C) Abstraction
(D) None of the above
Destructor has the same name as the constructor and it is preceded by?
(A) !
(B) ~
(C) ?
(D) #
In OOP abstraction refers to?
(A) Showing only essential info of the application
(B) Hiding the details
(C) Reuse once written code again and again
(D) Both A & B
Default storage for local variables is?
(A) extern
(B) register
(C) auto
(D) static
You can never use address of __ variable.
(A) auto
(B) register
(C) static
(D) global