C++ Programming Questions Answers - Set 2
-
29. The default visibility mode while inheriting is ?
- public
- protected
- private
- may be any of above
Answer And Explanation
Answer: Option C
-
30. The process of deriving a class from another derived class is known as ?
- single inheritance
- dual inheritance
- multiple inheritance
- multilevel inheritance
Answer And Explanation
Answer: Option D
-
31. When a derived class inherits from many base classes, this process is known as ?
- multiple inheritance
- multilevel inheritance
- default inheritance
- multiplex inheritance
Answer And Explanation
Answer: Option A
-
33. Which variables cannot be declared ?
- structure
- pointer
- class
- void
Answer And Explanation
Answer: Option D
-
34. The derived class constructor
- never passes any values to base class constructor
- can pass arguments only to one base class constructor function
- is responsible for passing the entire test of arguments needed by base class constructors
- none of above
Answer And Explanation
Answer: Option C
-
35. Inheritance is referred to as
- “is a” relationship
- "have a" relationship
- both of above
- none of above
Answer And Explanation
Answer: Option A