1. Home
  2. Computer Science MCQs
  3. C++ and Object-Oriented Programming
  4. Which rule applies to a C++ reference variable?

Added 30 Nov -0001

Which rule applies to a C++ reference variable?

  1. It can safely hold a null value
  2. It occupies no storage whatsoever
  3. It must be initialised when declared Correct answer
  4. It may be rebound to another object

Correct answer

C. It must be initialised when declared

13 views

MCQSEXAM

Explanation

A reference is bound once at initialisation and cannot later be reseated to another object.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C++ and Object-Oriented Programming MCQs

Practise all C++ and Object-Oriented Programming MCQs

Similar MCQs