(A) Copy constructor
(B) Destructor
(C) Default constructor
(D) Parameterized constructor
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.
Difference between reference and pointer is?
(A) References are an Alias for a variable where as pointer stores the address of variable
(B) References stores address of variables where as pointer points to variables
(C) Both A & B
(D) Both are same
What does a reference provide?
(A) Alternate name for variable
(B) Alternate name for function
(C) Alternate name for class
(D) Alternate name for pointer
Which is used to define a reference variable?
(A) &
(B) $
(C) *
(D) #
How many types of templates in C++?
(A) 01
(B) 02
(C) 03
(D) Both A & C
How to declare a template?
(A) Template<>
(B) Template()
(C) temp
(D) tem
What does derived does not inherit from bases class?
(A) Friends
(B) Destructor
(C) Constructor
(D) All of the above
Polymorphism is?
(A) Class having two forms
(B) Class having empty
(C) Class having only single form
(D) Class having many forms