C++ Online Exam-Quiz3

C++ Online Exam-Quiz3

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

 
 
 
 

2. Which of the following statement is correct?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

8. Which of the following provides a reuse mechanism?

 
 
 
 

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

 
 
 
 

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

{

}

 
 
 
 

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

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

 
 
 
 

13. Which of the following operators cannot be overloaded?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

16. Which one of the following options is correct?

 
 
 
 

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