C++ Online Exam-Quiz3

C++ Online Exam-Quiz3

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

 
 
 
 

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

{

}

 
 
 
 

3. Which of the following operators cannot be overloaded?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

11. Which of the following statement is correct?

 
 
 
 

12. Which of the following provides a reuse mechanism?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

16. Which one of the following options is correct?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

Question 1 of 18

error: Content is protected !!