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

This section includes 3 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.

When both the const and non-const version of functions are required?

A. Return value have to be different in const
B. Return value have to be same in const
C. Return values have to be ignored
D. Return values have to be suppressed
Answer» B. Return value have to be same in const
2.

Which is the correct condition on const member functions?

A. Const member functions can t call non-const member functions
B. Const member functions can t call any other function
C. Const member functions can call only the functions which are neither const nor non-const
D. Const member functions can call only data members of call not member functions
Answer» B. Const member functions can t call any other function
3.

What are the constant member functions?

A. Functions which doesn t change value of calling object
B. Functions which doesn t change value of any object inside definition
C. Functions which doesn t allow modification of any object of class
D. Functions which doesn t allow modification of argument objects
Answer» B. Functions which doesn t change value of any object inside definition