C++ Programming Questions Answers - Chapter 1
-
8. Declaring pointer more than one can cause
- Trap
- abort a program
- error
- none of above
Answer And Explanation
Answer: Option A
-
9. Meaning of deed copy is
- A deep copy creates a copy of the dynamically allocated objects too
- A deep copy just copies the values of the data as they are
- A deep copy creates a copy of the statically allocated objects too
- Both A and C
Answer And Explanation
Answer: Option A
-
12. Difference between static and dynamic memory allocation is
- In static memory allocation memory to be allocated in preknown
- In dynamic memory allocation memory to be allocated in preknown
- There is no differnece
- Not exact difference is mentioned
Answer And Explanation
Answer: Option A
-
13. What is getline() in c++
- getline() extract the delimeter newline character from the input stream
- getline() does not extract the delimeter newline character from the input stream
- None of above
Answer And Explanation
Answer: Option A
-
14. expression x.y represents as
- member x of object y
- member y of object x
- member y of object pointed by x
- all of above
Answer And Explanation
Answer: Option B