C/C MCQ Quiz Hub

C Programming -OOPS Concepts

Choose a topic to test your knowledge and improve your C/C skills

Which of the following type of class allows only one object of it to be created?





✅ Correct Answer: 3

Which of the following is not a type of constructor?





✅ Correct Answer: 2

Which of the following statements is correct?





✅ Correct Answer: 2

Which of the following is not the member of class?





✅ Correct Answer: 4

Which of the following concepts means determining at runtime what method to invoke?





✅ Correct Answer: 3

Which of the following term is used for a function defined inside a class?





✅ Correct Answer: 2

Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?





✅ Correct Answer: 3

How many instances of an abstract class can be created?





✅ Correct Answer: 4

Which of the following cannot be friend?





✅ Correct Answer: 3

Which of the following concepts of OOPS means exposing only necessary information to client?





✅ Correct Answer: 3

Why reference is not same as a pointer?





✅ Correct Answer: 4

cout is a/an __________ .





✅ Correct Answer: 3

Which of the following concepts provides facility of using object of one class inside another class?





✅ Correct Answer: 3

How many types of polymorphisms are supported by C++?





✅ Correct Answer: 2

Which of the following is an abstract data type?





✅ Correct Answer: 4

Which of the following concepts means adding new components to a program as it runs?





✅ Correct Answer: 4

Which of the following statement is correct?





✅ Correct Answer: 1

Which of the following correctly describes overloading of functions?





✅ Correct Answer: 3

Which of the following approach is adapted by C++?





✅ Correct Answer: 2

Which of the following is correct about function overloading?





✅ Correct Answer: 4

Which of the following is correct about class and structure?





✅ Correct Answer: 4

Which of the following concepts means wrapping up of data and functions together?





✅ Correct Answer: 2

Which of the following concepts means waiting until runtime to determine which function to call?





✅ Correct Answer: 3

How "Late binding" is implemented in C++?





✅ Correct Answer: 2

Which of the following operator is overloaded for object cout?





✅ Correct Answer: 2

Which of the following is the correct class of the object cout?





✅ Correct Answer: 3

Which of the following cannot be used with the keyword virtual?





✅ Correct Answer: 3

Which of the following functions are performed by a constructor?





✅ Correct Answer: 4

Which of the following problem causes an exception?





✅ Correct Answer: 4

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

Which of the following is the correct way of declaring a function as constant?





✅ Correct Answer: 3

Which of the following concepts is used to implement late binding?





✅ Correct Answer: 1

Which of the following statement is correct?





✅ Correct Answer: 4

Which of the following factors supports the statement that reusability is a desirable feature of a language?





✅ Correct Answer: 4

Which of the following ways are legal to access a class data member using this pointer?





✅ Correct Answer: 1

Which of the following is a mechanism of static polymorphism?





✅ Correct Answer: 4

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

What happens if the base and derived class contains definition of a function with same prototype?





✅ Correct Answer: 4

Which of the following are available only in the class hierarchy chain?





✅ Correct Answer: 3

Which of the following is not a type of inheritance?





✅ Correct Answer: 3

Which of the following operators cannot be overloaded?





✅ Correct Answer: 3

In which of the following a virtual call is resolved at the time of compilation?





✅ Correct Answer: 4

Which of the following statements regarding inline functions is correct





✅ Correct Answer: 4

Which one of the following is the correct way to declare a pure virtual function?





✅ Correct Answer: 3

Which of the following header file includes definition of cin and cout?





✅ Correct Answer: 4

Which of the following keyword is used to overload an operator?





✅ Correct Answer: 4

Which inheritance type is used in the class given below? class A : public X, public Y {}





✅ Correct Answer: 2

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

Which of the following is an invalid visibility label while inheriting a class?





✅ Correct Answer: 4

Which one of the following options is correct?





✅ Correct Answer: 4

Which of the following statements is correct in C++?





✅ Correct Answer: 2

Which of the following is used to make an abstract class?





✅ Correct Answer: 4

Which of the following access specifier is used as a default in a class definition?





✅ Correct Answer: 3

What is correct about the static data member of a class?





✅ Correct Answer: 4

Which of the following provides a reuse mechanism?





✅ Correct Answer: 2

Which of the following statement is correct?





✅ Correct Answer: 2