C++ Programming Questions Answers - Set 2

  • 29. 78. If new operator is used, then the constructor function is ?

    1. Copy constructor
    2. Default constructor
    3. Static constructor
    4. Dynamic constructor
    Answer :

    Option D

  • 30. Which is more memory efficient ?

    1. structure
    2. union
    3. both use same memory
    4. depends on a programmer
    Answer :

    Option B

  • 31. Only one copy of the class is inherited, when it is defined as ?

    1. virtual
    2. public
    3. static
    4. private
    Answer :

    Option A

  • 32. What is default visibility mode for members of classes in C++ ?

    1. Private
    2. Public
    3. Protected
    4. Depends
    Answer :

    Option A

  • 33. Queues are based on ?

    1. LIFO
    2. FIFO
    3. LILO
    4. FILO
    Answer :

    Option B

  • 34. What is class in c++ ?

    1. When you define a class, you define a blueprint for a data type.
    2. When you define a class, you make get more funtionality.
    3. When you define a class, you define the logic.
    4. When you define a class, you make debugging.
    Answer :

    Option A

  • 35. When a structure refers to itself, it is known as ?

    1. encapsulated structure
    2. nested structure
    3. recursive structure
    4. self-referential structure
    Answer :

    Option D

Please Like Us