Explore topic-wise MCQs in Object Oriented Programming Using C++.

This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming Using C++ knowledge and support exam preparation. Choose a topic below to get started.

1.

Which member function doesn t require any return type?

A. Static
B. Constructor
C. Const
D. Constructor and destructor
Answer» E.
2.

A member function can _______________ of the same class.

A. Call other member functions
B. Call only private member functions
C. Call only static member functions
D. Call only const member functions
Answer» B. Call only private member functions
3.

If a virtual member function is defined ___________

A. It should not contain any body and defined by subclasses
B. It must contain body and overridden by subclasses
C. It must contain body and be overloaded
D. It must not contain any body and should not be derived
Answer» B. It must contain body and overridden by subclasses
4.

For overloading ( ) , [ ] or -> operators, a class __________

A. Must use static member functions
B. Must use non-static member functions
C. Must be non-static member and should not be friend of class
D. Must use static member function or a friend member function
Answer» D. Must use static member function or a friend member function
5.

How can a static member function be called in the main function?

A. Using dot operator
B. Using arrow operator
C. Using dot or arrow operator
D. Using dot, arrow or using scope resolution operator with class name
Answer» E.