C++ MCQ: OOPS Multiple Choice Questions

C++ MCQ with answers and explanations for placement tests and job interviews. These solved C++ Programming MCQ questions are useful for the campus placement of all freshers including Engineering Students, MCA students, Computer and IT Engineers, etc.

Our C++ MCQ ( C++ Multiple Choice Questions )  focuses on all areas of the C++ programming language. We will regularly update the quiz and most interesting thing is that questions come in a random sequence. So every time you will feel new questions.

Note: Your score along with correct answers will be visible after answering all of these questions.

C++ MCQ

C++ OOPS Multiple Choice Questions And Answers

1 / 60

How structures and classes in C++ differ?

2 / 60

What are the things that are inherited from the base class?

3 / 60

A member function can always access the data in __________ , (in C++).

4 / 60

Which OOPs concept is allowed to reuse the code?

5 / 60

Which of the following is not correct (in C++) ?

1. Class templates and function templates are instantiated in the same way.
2. Class templates differ from function templates in the way they are initiated.
3. Class template is initiated by defining an object using the template argument.
4. Class templates are generally used for storage classes.

6 / 60

The associativity of which of the following operators is Left to Right, in C++?

7 / 60

Assigning one or more function body to the same name is called ____________ .

8 / 60

Which of the following is true about inline functions and macros.

9 / 60

If a class contains static variable, then every object of the class has its copy of static variable.

10 / 60

A virtual function that has no definition within the base class is called____________.

11 / 60

If abstract class is inherited by derived class, then_______________ .

12 / 60

What is the effect of a negative number in a field width specifier?

13 / 60

How many types of polymorphism in c++?

14 / 60

Wrapping data and its related functionality into a single entity is known as _____________

15 / 60

Which of the not an inheritance?

16 / 60

Which of the following class allows to declare only one object of it?

17 / 60

While redefining a virtual function in the derived class, if its prototype is changed then ___________________ .

18 / 60

Inline functions are useful when

19 / 60

Which of the following approach is followed by the c++

20 / 60

Which of the following explains Polymorphism?

1.

int func(int, int);
float func1(float, float);

2.

int func(int);
int func(int);

3.

int func(float);
float func(int, int, char);

4.

int func();
int new_func();

 

 

21 / 60

Which symbol is used as an address operator?

22 / 60

Which of the following is correct?

23 / 60

Method overriding can be prevented by using the final as a modifier at ______.

24 / 60

Which of the following is not correct for virtual function in C++?

25 / 60

Assume class TEST. Which of the following statements is/are responsible to invoke copy constructor?

26 / 60

The member in a class by default is ____?

27 / 60

Which of the following are true about Virtual functions?

28 / 60

If base class has constructor with arguments, then it is ________________ for the derived class to have constructor and pass the arguments to base class constructor.

29 / 60

How access specifiers in Class helps in Abstraction?

30 / 60

How run-time polymorphisms are implemented in C++?

31 / 60

What is the difference between references and pointers?

32 / 60

Constant variables can be created in CPP by using ________ .

33 / 60

How compile-time polymorphisms are implemented in C++?

34 / 60

Pick the correct statement about references.

35 / 60

Classes in CPP are________

36 / 60

What does modularity mean?

37 / 60

An operator function is created using _____________ keyword.

38 / 60

Which of the following is an abstract data type?

39 / 60

How the template class is different from the normal class?

40 / 60

Which of the following is not a type of Constructor?

41 / 60

When a virtual function is redefined by the derived class, it is called___________.

42 / 60

In any ways, Non-member function cannot have access to the private data of the class.

43 / 60

Identify the incorrect statement.

44 / 60

What is the syntax of class template?

45 / 60

Why references are different from pointers?

46 / 60

In CPP program, Can we declare and define a user defined function inside a struct as we do in a class ?

47 / 60

_________________are used for generic programming.

48 / 60

Which one of the following is not a member of the class?

49 / 60

While overloading binary operators using member function, it requires ___ argument/s.

50 / 60

Which of the following function must use reference.

51 / 60

In CPP, cin and cout are the predefined stream __________ .

52 / 60

Which of the following shows multiple inheritances?

53 / 60

const member function does not allow to modify/alter the value of any data member of the class.

54 / 60

Which of the following provides a programmer with the facility of using the object of a class inside other classes?

55 / 60

How can we make a C++ class such that objects of it can only be created using new operator? If the user tries to create an object directly, the program produces compiler error.

56 / 60

Who is the father of C++?

57 / 60

In C++, polymorphism requires:

58 / 60

What does polymorphism in OOPs mean?

59 / 60

Can constructors be overloaded?

60 / 60

Which operator is overloaded for cout operation?

 

Recommended Articles for you:

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *