C++ Programming Questions Answers - Set 2
-
57. A virtual base class ?
- is qualified as virtual in base class definition.
- do not qualified as virtual in base class definition.
- allows to inherit more than one copy of the base class members.
- strict the path of inheritance.
Answer And Explanation
Answer: Option A
-
58. A class having no public constructors is
- A public protected class
- A public class
- A protected class
- A private class
Answer And Explanation
Answer: Option D
-
59. What is default scope for a structure ?
- Private
- Protected
- Public
- None of aobve
Answer And Explanation
Answer: Option C
-
60. The objects can directly access ?
- Public members
- Private members
- Both of above
- None of above
Answer And Explanation
Answer: Option A
-
61. The advantage of declaring a virtual function as pure is
?
- programs runs faster
- early binding can be achieved
- you force any derived class to define its own implementation
- you can avoid making the class an abstract class
Answer And Explanation
Answer: Option C
-
62. << operator is ?
- stream extraction operator
- stream insertion operator
- left shift operator
- right shift operator
Answer And Explanation
Answer: Option B
-
63. C++ is a ?
- Procedural programming language
- Structural programming language
- Low level language
- Object oriented programming language
Answer And Explanation
Answer: Option D