Q) Data members and member functions of a class in C++ program are by default
- protected
- public
- private
- None
Answer: 3
Q) Which operator is used to allocate an object dynamically of a class in C++?
- Scope resolution operator
- Conditional operator
- New operator
- Membership access
Answer: 3
Q) Which is used to define the member function of a class externally?
- :
- ::
- #
- None
Answer: 2
Q) In C++, an object cannot be created for
- An interface
- An Abstract class
- A singleton class
- A & B
- A, B & C
Answer: 4
Q) By default functions available in C++ language are
- Constructor
- Destructor
- Copy constructor
- Assignment operator
- All
Answer: 5