Review each question and reveal answers to strengthen your understanding
1Which of the following type of class allows only one object of it to be created?
✅ Correct Answer: 3
2Which of the following is not a type of constructor?
✅ Correct Answer: 2
3Which of the following statements is correct?
✅ Correct Answer: 2
4Which of the following is not the member of class?
✅ Correct Answer: 4
5Which of the following concepts means determining at runtime what method to invoke?
✅ Correct Answer: 3
6Which of the following term is used for a function defined inside a class?
✅ Correct Answer: 2
7Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
✅ Correct Answer: 3
8How many instances of an abstract class can be created?
✅ Correct Answer: 4
9Which of the following cannot be friend?
✅ Correct Answer: 3
10Which of the following concepts of OOPS means exposing only necessary information to client?
✅ Correct Answer: 3
11Why reference is not same as a pointer?
✅ Correct Answer: 4
12cout is a/an __________ .
✅ Correct Answer: 3
13Which 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
16Which of the following concepts means adding new components to a program as it runs?
✅ Correct Answer: 4
17Which of the following statement is correct?
✅ Correct Answer: 1
18Which of the following correctly describes overloading of functions?
✅ Correct Answer: 3
19Which of the following approach is adapted by C++?
✅ Correct Answer: 2
20Which of the following is correct about function overloading?
✅ Correct Answer: 4
21Which of the following is correct about class and structure?
✅ Correct Answer: 4
22Which 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
24How "Late binding" is implemented in C++?
✅ Correct Answer: 2
25Which of the following operator is overloaded for object cout?
✅ Correct Answer: 2
26Which of the following is the correct class of the object cout?
✅ Correct Answer: 3
27Which of the following cannot be used with the keyword virtual?
✅ Correct Answer: 3
28Which of the following functions are performed by a constructor?
✅ Correct Answer: 4
29Which of the following problem causes an exception?
✅ Correct Answer: 4
30Which 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
32Which of the following concepts is used to implement late binding?
✅ Correct Answer: 1
33Which 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
35Which of the following ways are legal to access a class data member using this pointer?
✅ Correct Answer: 1
36Which 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
38What happens if the base and derived class contains definition of a function with same prototype?
✅ Correct Answer: 4
39Which 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
41Which 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
43Which of the following statements regarding inline functions is correct
✅ Correct Answer: 4
44Which one of the following is the correct way to declare a pure virtual function?
✅ Correct Answer: 3
45Which of the following header file includes definition of cin and cout?
✅ Correct Answer: 4
46Which of the following keyword is used to overload an operator?
✅ Correct Answer: 4
47Which inheritance type is used in the class given below?
class A : public X, public Y
{}
✅ Correct Answer: 2
48Which 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
50Which one of the following options is correct?
✅ Correct Answer: 4
51Which of the following statements is correct in C++?
✅ Correct Answer: 2
52Which of the following is used to make an abstract class?
✅ Correct Answer: 4
53Which of the following access specifier is used as a default in a class definition?
✅ Correct Answer: 3
54What is correct about the static data member of a class?
✅ Correct Answer: 4
55
Which of the following provides a reuse mechanism?