OOPs Concepts on C++ related Questions and Answers - Page 4

Question 31 : Which of the following is not a type of inheritance?
1. Multiple
2. Multilevel
3. Distributive
4. Hierarchical
View Answer   Discuss with Members

Question 32 : Which of the following are available only in the class hierarchy chain?
1. Public data members
2. Private data members
3. Protected data members
4. Member functions
View Answer   Discuss with Members

Question 34 : Which of the following is a mechanism of static polymorphism?
1. Operator overloading
2. Function overloading
3. Templates
4. All of the above
View Answer   Discuss with Members

Question 35 : Which of the following header file includes definition of cin and cout?
1. istream.h
2. ostream.h
3. iomanip.h
4. iostream.h
View Answer   Discuss with Members

Question 36 : Which one of the following is the correct way to declare a pure virtual function?
1. virtual void Display(void){0};
2. virtual void Display = 0;
3. virtual void Display(void) = 0;
4. void Display(void) = 0;
View Answer   Discuss with Members

Question 37 : Which of the following statements regarding inline functions is correct?
1. It speeds up execution.
2. It slows down execution.
3. It increases the code size.
4. Both A and C.
View Answer   Discuss with Members

Question 38 : In which of the following a virtual call is resolved at the time of compilation?
1. From inside the destructor.
2. From inside the constructor.
3. From inside the main().
4. Both A and B.
View Answer   Discuss with Members

Question 39 : Which of the following operators cannot be overloaded?
1. []
2. ->
3. ?:
4. *
View Answer   Discuss with Members

Question 40 : Which of the following is an invalid visibility label while inheriting a class?
1. public
2. private
3. protected
4. friend
View Answer   Discuss with Members


View 31 - 40 of 49 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter