Sail E0 Webinar

MCQs

Total Questions : 14 | Page 2 of 2 pages
Question 11. What should be the name of constructor?
  1.    same as object
  2.    same as member
  3.    same as class
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> same as class


same as class


Question 12. What does derived class does not inherit from the base class?
  1.    constructor and destructor
  2.    friends
  3.    operator = () members
  4.    all of the mentioned
 Discuss Question
Answer: Option D. -> all of the mentioned


The derived class inherit everything from the base class except the given things.


Question 13. Which design patterns benefit from the multiple inheritance?
  1.    Adapter and observer pattern
  2.    Code pattern
  3.    Glue pattern
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Adapter and observer pattern


Adapter and observer pattern


Question 14. What is meant by polymorphism?
  1.    class having many forms
  2.    class having only single form
  3.    class having two forms
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> class having many forms


Polymirphism is literally means class having many forms.


Latest Videos

Latest Test Papers