MCQs
Total Questions : 37
| Page 4 of 4 pages
Answer: Option A. -> Only 1 is correct.
Answer: Option D. -> Both 1 and 2 are incorrect.
Answer: Option B. -> A reference is stored on stack.
Question 34.
Functions can be declared to return a reference type. There are reasons to make such a
declaration/Which of the following reasons are correct?
1. The information being returned is a large enough object that returning a reference is more
efficient than returning a copy.
2. The type of the function must be a R-value.
Answer: Option C. -> Both 1 and 2 are correct.
Answer: Option A. -> &
None.
Answer: Option B. -> A reference value once defined can be reassigned
Reference is a thing which points to valid memory address, so it can’t be redesigned.
Answer: Option D. -> null
If it can be assigned with a null value means, it is a copy of pointer.