C++ Online Exam-Quiz3

C++ Online Exam-Quiz3

1. Which of the following is not a type of inheritance?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

4. Which one of the following is correct about the statements given below?

  1. All function calls are resolved at compile-time in Procedure Oriented Programming.
  2. All function calls are resolved at compile-time in OOPS.
 
 
 
 

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

 
 
 
 

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

{

}

 
 
 
 

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

 
 
 
 

8. Which of the following statements regarding inline functions is correct?

 
 
 
 

9. Which of the following statement is correct?

 
 
 
 

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

 
 
 
 

11. Which one of the following options is correct?

 
 
 
 

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

 
 
 
 

13. Which of the following provides a reuse mechanism?

 
 
 
 

14. What will happen if a class is not having any name?

 
 
 
 

15. Which of the following operators cannot be overloaded?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

Question 1 of 18

error: Content is protected !!