C++ Programming Questions Answers - Set 2

  • 43. Which operators can not be overloaded ?

    1. Binary operator
    2. Ternary operator
    3. Unary operator
    4. All can be overloaded
    Answer :

    Option B

  • 44. 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 :

    Option D

  • 45. A Variable __ of void type.

    1. May be declared
    2. Can be initialized
    3. Cannot be intialized
    4. Cannot be declared
    Answer :

    Option D

  • 46. Which among following is correct way of declaring object of a class ?

    1. Only argument I is strong
    2. Only argument II is strong
    3. Either I or II is strong
    4. Neither I nor II is strong
    5. Both I and II are strong
    6. Classname Objectname;
    7. Class Classname Objectname;
    8. Class Classname Object Objectname;
    9. Classname Object Objectname;
    Answer :

    Option F

  • 47. Constructors has return type void ?

    1. True
    2. False
    Answer :

    Option A

  • 48. The default visibility mode while inheriting is ?

    1. public
    2. protected
    3. private
    4. may be any of above
    Answer :

    Option C

  • 49. The major goal of inheritance in C++ is ?

    1. To facilitate the reusability of code
    2. To help modular programming
    3. To facilitate the conversion of data types
    4. To extend the capabilities of a class
    Answer :

    Option A

Please Like Us