OOPS Concepts Questions and Answers updated daily – C++



25 OOPS Concepts Questions and answers section with explanation for various online exam preparation, various interviews, C++ OOPS Concepts online test. OOPS Concepts Questions with detailed description, explanation will help you to master the topic.

OOPS Concepts Questions

1.
  Which of the following approach is adapted by C++?



SHOW ANSWER
Correct Ans:Bottom-up
Explanation:


2. Which of the following concepts means determining at runtime what method to invoke?



SHOW ANSWER
Correct Ans:Dynamic binding
Explanation:


3. Which of the following is not the member of class?



SHOW ANSWER
Correct Ans:Friend function
Explanation:


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



SHOW ANSWER
Correct Ans:Friend constructor
Explanation:


5. Which of the following type of class allows only one object of it to be created?



SHOW ANSWER
Correct Ans:Singleton class
Explanation:


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



SHOW ANSWER
Correct Ans:Protected data members
Explanation:


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

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



SHOW ANSWER
Correct Ans:Both I and II are false.
Explanation:


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



SHOW ANSWER
Correct Ans:All of the above
Explanation:


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



SHOW ANSWER
Correct Ans:iostream.h
Explanation:


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



SHOW ANSWER
Correct Ans:virtual void Display(void) = 0;
Explanation:


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



SHOW ANSWER
Correct Ans:Both A and C.
Explanation:


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



SHOW ANSWER
Correct Ans:Both A and B.
Explanation:


13. Which of the following operators cannot be overloaded?



SHOW ANSWER
Correct Ans:?:
Explanation:


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



SHOW ANSWER
Correct Ans:friend
Explanation:


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

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



SHOW ANSWER
Correct Ans:Only I is correct.
Explanation:


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



SHOW ANSWER
Correct Ans:Multiple inheritance
Explanation:


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



SHOW ANSWER
Correct Ans:Both A and B.
Explanation:


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



SHOW ANSWER
Correct Ans:operator
Explanation:


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



SHOW ANSWER
Correct Ans:Both A and B.
Explanation:


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



SHOW ANSWER
Correct Ans:private
Explanation:



12



FreshersLive - No.1 Job site in India. Here you can find latest 2017 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.