C++ Online Exam-Quiz3

C++ Online Exam-Quiz3

1. Which of the following operators cannot be overloaded?

 
 
 
 

2. Which of the following provides a reuse mechanism?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

10. Which of the following statement is correct?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

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

 
 
 
 

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

 
 
 
 

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

{

}

 
 
 
 

17. Which one of the following options is correct?

 
 
 
 

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

 
 
 
 

Question 1 of 18

error: Content is protected !!