C++ Programming Questions Answers - Chapter 1

  • 15. what is the size of int datatype for 32 bit system

    1. 1 byte
    2. 2 byte
    3. 4 byte
    4. 8 byte
    Answer :

    Option C

  • 16. What is polymorphism

    1. Ability to take more than one form
    2. Ability to destroy destructor
    3. Ability to create constructor
    4. None of above
    Answer :

    Option A

  • 17. All members of class have which access to its members

    1. private
    2. public
    3. protected
    4. depends
    Answer :

    Option A

  • 18. ios::ate is used for

    1. Set the initial position at the start of the file
    2. Set the last position at the end of the file
    3. Set the initial position at the end of the file
    4. Set the last position at the start of the file
    Answer :

    Option C

  • 19. cout is declared in the _____ standard file within the std namespace

    1. outstream
    2. stdin
    3. iostream
    4. None of above
    Answer :

    Option C

  • 20. Which is boolean operator for logical and

    1. &
    2. ||
    3. &|
    4. &&
    Answer :

    Option D

  • 21. Meaning of PDB

    1. Physical Database File
    2. Program Database File
    3. Program Direct File
    4. None of above
    Answer :

    Option B

Please Like Us