C++ Programming - References

Why C++ Programming References?

In this section you can learn and practice C++ Programming Questions based on "References" and improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

Where can I get C++ Programming References questions and answers with explanation?

IndiaBIX provides you lots of fully solved C++ Programming (References) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download C++ Programming References quiz questions with answers as PDF files and eBooks.

Where can I get C++ Programming References Interview Questions and Answers (objective type, multiple choice)?

Here you can find objective type C++ Programming References questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.

How to solve C++ Programming References problems?

You can easily solve all kind of C++ Programming questions based on References by practicing the objective type exercises given below, also get shortcut methods to solve C++ Programming References problems.

Exercise :: References - General Questions

1. 

Which of the following statement is correct?

A. A reference is stored on heap.
B. A reference is stored on stack.
C. A reference is stored in a queue.
D. A reference is stored in a binary tree.

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

2. 

Which of the following statements is correct?

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

A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

3. 

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.

A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

4. 

Which of the following statements is correct?

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

A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

5. 

Which of the following statement is correct about the references?

A. A reference must always be initialized within functions.
B. A reference must always be initialized outside all functions.
C. A reference must always be initialized.
D. Both A and C.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.