github

Made bySaurav Hathi

MCQ Test C/C++: Object Oriented Programming 1

Q1:

What members can a class can hold?

Tags:
Section:
Core Programming
Options:
Q2:

How many access specifiers are there in class in C++?

Tags:
Section:
Core Programming
Options:
Q3:

In C++, which operator is used to define the member of a class externally?

Tags:
Section:
Core Programming
Options:
Q4:

In C++, which other keywords are used to declare composite data types other than 'class' keyword?

Tags:
Section:
Core Programming
Options:
Q5:

Which of the following is a valid class declaration in C++?

Tags:
Section:
Core Programming
Options:
Q6:

The access specifier of the classes in C++ programs by default are :

Tags:
Section:
Core Programming
Options:
Q7:

In C++, when struct is used instead of the keyword class, what will happen in the program?

Tags:
Section:
Core Programming
Options:
Q8:

In C++, if a function is friend of a class, which one of the following is wrong?

Tags:
Section:
Core Programming
Options:
Q9:

In C++, which one of the following statements is correct when a class grants friend status to another class?

Tags:
Section:
Core Programming
Options:
Q10:

Which of the following is true regarding classes in C++?

Tags:
Section:
Core Programming
Options:
Q11:

An object is an instance of a _________.

Tags:
Section:
Core Programming
Options:
Q12:

Which operator is used to access the members of a class object in C++?

Tags:
Section:
Core Programming
Options:
Q13:

Which of the following is dependent on template parameter in C++?

Tags:
Section:
Core Programming
Options:
Q14:

Objects are ______________ of a class.

Tags:
Section:
Core Programming
Options:
Q15:

A class can have __________ objects.

Tags:
Section:
Core Programming
Options:
Q16:

In C++, a virtual function that has no definition within the base class is called ____________.

Tags:
Section:
Core Programming
Options:
Q17:

In C++, if abstract class is inherited by derived class, then _______________ .
 

Tags:
Section:
Core Programming
Options:
Q18:

Which of the following is true about virtual functions in C++?
 

Tags:
Section:
Core Programming
Options:
Q19:

Find the wrong statement about abstract Class in C++.
 

Tags:
Section:
Core Programming
Options:
Q20:

Syntax for Pure Virtual Function is ______________ .
Consider show() as the function name.

Tags:
Section:
Core Programming
Options:
Q21:

In C++, when a data member of the new class is an object of another class, it is called as

Tags:
Section:
Core Programming
Options:
Q22:

Composition is also called as

Tags:
Section:
Core Programming
Options:
Q23:

In C++, which of these following members cannot be accessed by using direct member access operator?

Tags:
Section:
Core Programming
Options:
Q24:

Which is used to describe the function using placeholder types in C++?

Tags:
Section:
Core Programming
Options:
Q25:

Which data type values are placed in the base class?

Tags:
Section:
Core Programming
Options:
Q26:

Which of the followings is/are automatically added to every class, if we do not write our own?

Tags:
Section:
Core Programming
Options:
Q27:

What is the Run-Time Type Information?

Tags:
Section:
Core Programming
Options:
Q28:

Which operators are part of RTTI?

Tags:
Section:
Core Programming
Options:
Q29:

To which type of class, We can apply RTTI?

Tags:
Section:
Core Programming
Options:
Q30:

What is meant by type_info?

Tags:
Section:
Core Programming
Options: