(A) Copy constructor
(B) Destructor
(C) Default constructor
(D) Parameterized constructor
Tag: C++ Mcqs
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