C++ Programming Questions Answers - Set 2

  • 57. What is object in C++ ?

    1. Object is part of syntax of a class.
    2. Object is datatype of a class.
    3. Object is an instance of a class.
    4. Object is function of a class.
    Answer :

    Option C

  • 58. What is default scope for a structure ?

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

    Option C

  • 59. Destructors are called ?

    1. not defined
    2. in any order
    3. in the reverse order of constructor calls
    4. in the same order of constructor calls
    Answer :

    Option C

  • 60. When one class inherits from the base class, then the original class is called ?

    1. derived class
    2. base class
    3. sub class
    4. basic class
    Answer :

    Option B

  • 61. << operator is ?

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

    Option B

  • 62. Stacks are based on ?

    1. FIFO
    2. LIFO
    3. FILO
    4. All of above
    Answer :

    Option B

  • 63. int *ptr[5];

    1. a pointer of 5 int elements
    2. an array of 5 int pointers
    3. an array of 5 elements returning an int value
    4. none of above
    Answer :

    Option B

Please Like Us