C C — Learn

C Programming -OOPS Concepts

Review each question and reveal answers to strengthen your understanding

1 Which of the following type of class allows only one object of it to be created?
✅ Correct Answer: 3
2 Which of the following is not a type of constructor?
✅ Correct Answer: 2
3 Which of the following statements is correct?
✅ Correct Answer: 2
4 Which of the following is not the member of class?
✅ Correct Answer: 4
5 Which of the following concepts means determining at runtime what method to invoke?
✅ Correct Answer: 3
6 Which of the following term is used for a function defined inside a class?
✅ Correct Answer: 2
7 Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
✅ Correct Answer: 3
8 How many instances of an abstract class can be created?
✅ Correct Answer: 4
9 Which of the following cannot be friend?
✅ Correct Answer: 3
10 Which of the following concepts of OOPS means exposing only necessary information to client?
✅ Correct Answer: 3
11 Why reference is not same as a pointer?
✅ Correct Answer: 4
12 cout is a/an __________ .
✅ Correct Answer: 3
13 Which of the following concepts provides facility of using object of one class inside another class?
✅ Correct Answer: 3
14 How many types of polymorphisms are supported by C++?
✅ Correct Answer: 2
15 Which of the following is an abstract data type?
✅ Correct Answer: 4
16 Which of the following concepts means adding new components to a program as it runs?
✅ Correct Answer: 4
17 Which of the following statement is correct?
✅ Correct Answer: 1
18 Which of the following correctly describes overloading of functions?
✅ Correct Answer: 3
19 Which of the following approach is adapted by C++?
✅ Correct Answer: 2
20 Which of the following is correct about function overloading?
✅ Correct Answer: 4
21 Which of the following is correct about class and structure?
✅ Correct Answer: 4
22 Which of the following concepts means wrapping up of data and functions together?
✅ Correct Answer: 2
23 Which of the following concepts means waiting until runtime to determine which function to call?
✅ Correct Answer: 3
24 How "Late binding" is implemented in C++?
✅ Correct Answer: 2
25 Which of the following operator is overloaded for object cout?
✅ Correct Answer: 2
26 Which of the following is the correct class of the object cout?
✅ Correct Answer: 3
27 Which of the following cannot be used with the keyword virtual?
✅ Correct Answer: 3
28 Which of the following functions are performed by a constructor?
✅ Correct Answer: 4
29 Which of the following problem causes an exception?
✅ Correct Answer: 4
30 Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.
✅ Correct Answer: 2
31 Which of the following is the correct way of declaring a function as constant?
✅ Correct Answer: 3
32 Which of the following concepts is used to implement late binding?
✅ Correct Answer: 1
33 Which of the following statement is correct?
✅ Correct Answer: 4
34 Which of the following factors supports the statement that reusability is a desirable feature of a language?
✅ Correct Answer: 4
35 Which of the following ways are legal to access a class data member using this pointer?
✅ Correct Answer: 1
36 Which of the following is a mechanism of static polymorphism?
✅ Correct Answer: 4
37 Which of the following is correct about the statements given below? All operators can be overloaded in C++. We can change the basic meaning of an operator in C++.
✅ Correct Answer: 2
38 What happens if the base and derived class contains definition of a function with same prototype?
✅ Correct Answer: 4
39 Which of the following are available only in the class hierarchy chain?
✅ Correct Answer: 3
40 Which of the following is not a type of inheritance?
✅ Correct Answer: 3
41 Which of the following operators cannot be overloaded?
✅ Correct Answer: 3
42 In which of the following a virtual call is resolved at the time of compilation?
✅ Correct Answer: 4
43 Which of the following statements regarding inline functions is correct
✅ Correct Answer: 4
44 Which one of the following is the correct way to declare a pure virtual function?
✅ Correct Answer: 3
45 Which of the following header file includes definition of cin and cout?
✅ Correct Answer: 4
46 Which of the following keyword is used to overload an operator?
✅ Correct Answer: 4
47 Which inheritance type is used in the class given below? class A : public X, public Y {}
✅ Correct Answer: 2
48 Which one of the following is correct about the statements given below? All function calls are resolved at compile-time in Procedure Oriented Programming. All function calls are resolved at compile-time in OOPS.
✅ Correct Answer: 3
49 Which of the following is an invalid visibility label while inheriting a class?
✅ Correct Answer: 4
50 Which one of the following options is correct?
✅ Correct Answer: 4
51 Which of the following statements is correct in C++?
✅ Correct Answer: 2
52 Which of the following is used to make an abstract class?
✅ Correct Answer: 4
53 Which of the following access specifier is used as a default in a class definition?
✅ Correct Answer: 3
54 What is correct about the static data member of a class?
✅ Correct Answer: 4
55 Which of the following provides a reuse mechanism?
✅ Correct Answer: 2
56 Which of the following statement is correct?
✅ Correct Answer: 2
Back to All Quizzes