C++ Programming Questions Answers - Chapter 1

  • 8. Declaring pointer more than one can cause

    1. Trap
    2. abort a program
    3. error
    4. none of above
    Answer And Explanation

    Answer: Option A

  • 9. Meaning of deed copy is

    1. A deep copy creates a copy of the dynamically allocated objects too
    2. A deep copy just copies the values of the data as they are
    3. A deep copy creates a copy of the statically allocated objects too
    4. Both A and C
    Answer And Explanation

    Answer: Option A

  • 10. Which is not a correct variable type

    1. float
    2. int
    3. double
    4. real
    Answer And Explanation

    Answer: Option D

  • 11. Which is boolean operator for logical and

    1. &
    2. ||
    3. &|
    4. &&
    Answer And Explanation

    Answer: Option D

  • 12. Difference between static and dynamic memory allocation is

    1. In static memory allocation memory to be allocated in preknown
    2. In dynamic memory allocation memory to be allocated in preknown
    3. There is no differnece
    4. Not exact difference is mentioned
    Answer And Explanation

    Answer: Option A

  • 13. What is getline() in c++

    1. getline() extract the delimeter newline character from the input stream
    2. getline() does not extract the delimeter newline character from the input stream
    3. None of above
    Answer And Explanation

    Answer: Option A

  • 14. expression x.y represents as

    1. member x of object y
    2. member y of object x
    3. member y of object pointed by x
    4. all of above
    Answer And Explanation

    Answer: Option B