Question
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.
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following statement is correct about the references?
Similar Questions
Discover Related MCQs
Q. A reference is declared using the _____ symbol.
View solution
Q. Which of the following statement is correct?
View solution
Q. Which of the following statements is correct?
1. A reference is not a constant pointer.
2. A referenced is automatically de-referenced.
View solution
Q. Which of the following statements is correct?
1. An array of references is acceptable.
2. We can also create a reference to a reference.
View solution
Q. Which of the following statement is correct?
View solution
Q. Which of the following statements is correct?
1. Once the variable and the reference are linked they are tied together.
2. Once the reference of a variable is declared another reference of that variable is not allowed.
View solution
Q. Which of the following statements is correct?
1. We can return a global variable by reference.
2. We cannot return a local variable by reference.
View solution
Q. Reference is like a _____.
View solution
Q. Which of the following statement is correct?
View solution
Q. Which of the following statement is correct?
View solution
Q. Which of the following statement is correct?
View solution
Q. Which of the following statements is correct?
1. Pointer to a reference and reference to a pointer both are valid.
2. When we use reference, we are actually referring to a referent.
View solution
Q. Referring an element outside the array bounds is a
View solution
Q. Each element of an array is searched against the searching key, is the specialty of
View solution
Q. A one-dimensional array of one-dimensional arrays is called
View solution
Q. The sequence of objects that have the same type, is called
View solution
Q. The binary search algorithm uses
View solution
Q. A character array can be initialized using
View solution
Q. For finding an object in an array starting from the beginning and inspecting each element one after the other, until the object is found is called as
View solution
Q. A consecutive group of memory locations that all have the same name and the same type, is called as
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Software Engineering
Learn about the systematic approach to developing software with our Software...
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...