C++ Programming Questions Answers - Set 2

  • 57. A virtual base class ?

    1. is qualified as virtual in base class definition.
    2. do not qualified as virtual in base class definition.
    3. allows to inherit more than one copy of the base class members.
    4. strict the path of inheritance.
    Answer And Explanation

    Answer: Option A

  • 58. A class having no public constructors is

    1. A public protected class
    2. A public class
    3. A protected class
    4. A private class
    Answer And Explanation

    Answer: Option D

  • 59. What is default scope for a structure ?

    1. Private
    2. Protected
    3. Public
    4. None of aobve
    Answer And Explanation

    Answer: Option C

  • 60. The objects can directly access ?

    1. Public members
    2. Private members
    3. Both of above
    4. None of above
    Answer And Explanation

    Answer: Option A

  • 61. The advantage of declaring a virtual function as pure is
    ?

    1. programs runs faster
    2. early binding can be achieved
    3. you force any derived class to define its own implementation
    4. you can avoid making the class an abstract class
    Answer And Explanation

    Answer: Option C

  • 62. << operator is ?

    1. stream extraction operator
    2. stream insertion operator
    3. left shift operator
    4. right shift operator
    Answer And Explanation

    Answer: Option B

  • 63. C++ is a ?

    1. Procedural programming language
    2. Structural programming language
    3. Low level language
    4. Object oriented programming language
    Answer And Explanation

    Answer: Option D