C++ Programming Questions Answers - Set 2

  • 36. Enumerator will allocate the memory when its variables are defined.

    1. True
    2. False
    Answer :

    Option A

  • 37. In C++ Functions can returns ?

    1. arrays
    2. reference
    3. objects
    4. all of above
    Answer :

    Option D

  • 38. Size of a char is ?

    1. 1
    2. 2
    3. 3
    4. 4
    Answer :

    Option A

  • 39. The antonym of constructor is ?

    1. Creator
    2. Distinct
    3. Destroyer
    4. Destructor
    Answer :

    Option D

  • 40. & operator is ?

    1. address operator
    2. indirection operator
    3. logical and
    4. logical or
    Answer :

    Option A

  • 41. Inheritance is transitive in nature.

    1. True
    2. False
    Answer :

    Option A

  • 42. Even if we define a function in a class, then also we need to declare it first.

    1. True
    2. False
    Answer :

    Option B

    Explanation:

    If we define a function in a class, then also we do not need to declare it first.

Please Like Us