C++ Programming Questions Answers - Set 2

  • 50. Enumerators are stored by the compiler in ?

    1. string
    2. integer
    3. float
    4. any of above
    Answer :

    Option B

  • 51. Which variables cannot be declared ?

    1. structure
    2. pointer
    3. class
    4. void
    Answer :

    Option D

  • 52. What is purpose of abstract class ?

    1. to provide help with database connectivity.
    2. to provide data input to other classes.
    3. to provide security to other classes.
    4. to provide an appropriate base class from which other classes can inherit.
    Answer :

    Option D

  • 53. C++ is a ?

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

    Option D

  • 54. A variable is defined within a block in a body of a function. Which of the following are true ?

    1. It is visible from the point of definition to the end of the program.
    2. It is visible throughout the function.
    3. It is visible from the point of definition to the end of the block.
    4. It is visible throughout the block.
    Answer :

    Option B

  • 55. Classes that can be used to instantiate objects are called concrete classes.

    1. True
    2. False
    Answer :

    Option A

  • 56. Which of the following cannot be passed to a function ?

    1. Array
    2. Reference variable
    3. Object
    4. File
    Answer :

    Option D

Please Like Us