C++ Online Exam-Quiz2

C++ Online Exam-Quiz2

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

 
 
 
 

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

 
 
 
 

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

  1. All operators can be overloaded in C++.
  2. We can change the basic meaning of an operator in C++.
 
 
 
 

4. How “Late binding” is implemented in C++?

 
 
 
 

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

 
 
 
 

6. Which of the following is a mechanism of static polymorphism?

 
 
 
 

7. 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.

 
 
 
 

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

 
 
 
 

9. Which of the following functions are performed by a constructor?

 
 
 
 

10. Which of the following operator is overloaded for object cout?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

13. Which of the following problem causes an exception?

 
 
 
 

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

 
 
 
 

15. Which of the following is correct about class and structure?

 
 
 
 

16. Which of the following statement is correct?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

Question 1 of 20

error: Content is protected !!