References Questions and Answers updated daily – C++



15 References Questions and answers section with explanation for various online exam preparation, various interviews, C++ References online test. References Questions with detailed description, explanation will help you to master the topic.

References Questions

1.
Which of the following statements is correct?
Pointer to a reference and reference to a pointer both are valid.
When we use reference, we are actually referring to a referent.



SHOW ANSWER
Correct Ans:Both 1 and 2 are correct.
Explanation:


2. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:An array of references is not acceptable.
Explanation:


3. Reference is like a _____.



SHOW ANSWER
Correct Ans:Pointer
Explanation:


4.
Which of the following statements is correct?
We can return a global variable by reference.
We cannot return a local variable by reference.



SHOW ANSWER
Correct Ans:Only 2 is correct
Explanation:


5.
Which of the following statements is correct?
Once the variable and the reference are linked they are tied together.
Once the reference of a variable is declared another reference of that variable is not allowed.



SHOW ANSWER
Correct Ans:Only 1 is correct.
Explanation:


6. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:A referenced does not need to be de-referenced to access a value.
Explanation:


7.
Which of the following statements is correct?

An array of references is acceptable.
We can also create a reference to a reference.



SHOW ANSWER
Correct Ans:Both 1 and 2 are incorrect.
Explanation:


8.
Which of the following statements is correct?

A reference is not a constant pointer.
A referenced is automatically de-referenced.



SHOW ANSWER
Correct Ans:Only 2 is correct.
Explanation:


9. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:Once a reference variable has been defined to refer to a particular variable it cannot refer to any other variable.
Explanation:


10. A reference is declared using the _____ symbol.



SHOW ANSWER
Correct Ans:&
Explanation:


11. Which of the following statement is correct about the references?



SHOW ANSWER
Correct Ans:A reference must always be initialized.
Explanation:


12.
Which of the following statements is correct?

Change a reference changes the referent.
We can create an array of references.



SHOW ANSWER
Correct Ans:Only 1 is correct.
Explanation:


13.
Functions can be declared to return a reference type. There are reasons to make such a declaration/Which of the following reasons are correct?

The information being returned is a large enough object that returning a reference is more efficient than returning a copy.
The type of the function must be a R-value.



SHOW ANSWER
Correct Ans:Both 1 and 2 are correct.
Explanation:


14.
Which of the following statements is correct?

Once a reference variable has been defined to refer to a particular variable it can refer to any other variable.
A reference is not a constant pointer.



SHOW ANSWER
Correct Ans:Both 1 and 2 are incorrect.
Explanation:


15. Which of the following statement is correct?



SHOW ANSWER
Correct Ans:A reference is stored on stack.
Explanation:



FreshersLive - No.1 Job site in India. Here you can find latest 2017 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.