Explore topic-wise MCQs in C++ Programming.

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

1.

Which functions of a class are called inline functions?

A. All the functions containing declared inside the class
B. All functions defined inside or with the inline keyword
C. All the functions accessing static members of the class
D. All the functions that are defined outside the class
Answer» C. All the functions accessing static members of the class
2.

Inline functions are avoided when ____________________________

A. function contains static variables
B. function have recursive calls
C. function have loops
D. all of the mentioned
Answer» E.
3.

Pick the incorrect statement about inline functions in C++?

A. They reduce function call overheads
B. These functions are inserted/substituted at the point of call
C. Saves overhead of a return call from a function
D. They are generally very large and complicated function
Answer» E.
4.

What does a mutable member of a class mean?

A. A member that can never be changed
B. A member that can be updated only if it not a member of constant object
C. A member that can be updated even if it a member of constant object
D. A member that is global throughout the class
Answer» D. A member that is global throughout the class
5.

How the objects are self-referenced in a member function of that class.

A. Using a special keyword object
B. Using this pointer
C. Using * with the name of that object
D. By passing self as a parameter in the member function
Answer» C. Using * with the name of that object
6.

Which operator a pointer object of a class uses to access its data members and member functions?

A. .
B. ->
C. :
D. ::
Answer» C. :
7.

Which category of data type a class belongs to?

A. Fundamental data type
B. Derived data type
C. User defined derived data type
D. Atomic data type
Answer» D. Atomic data type