Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
References Questions
Which of the following statements is correct? We can return a global variable by reference. We cannot return a local variable by reference.
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.
Reference is like a _____.
Which of the following statement is correct about the references?
Which of the following statement is correct?
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.
Which of the following statement is correct?
Which of the following statements is correct? An array of references is acceptable. We can also create a reference to a reference.
Which of the following statement is correct?
Which of the following statement is correct?
Which of the following statement is correct?
A reference is declared using the _____ symbol.
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.
Which of the following statements is correct? A reference is not a constant pointer. A referenced is automatically de-referenced.
Which of the following statement is correct?
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.
Which of the following statements is correct? Change a reference changes the referent. We can create an array of references.
Which of the following statement is correct about the program given below? #include
int CuriousTabFunction(int m) { m *= m; return((10)*(m /= m)); } int main() { int c = 9, *d = &c, e; int &z = e; e = CuriousTabFunction(c-- % 3? ++*d :(*d *= *d)); z = z + e / 10; cout<< c << " " << e; return 0; }
What will be the output of the following program? #include
enum xyz { a, b, c }; int main() { int x = a, y = b, z = c; int &p = x, &q = y, &r = z; p = z; p = ++q; q = ++p; z = ++q + p++; cout<< p << " " << q << " " << z; return 0; }
Which of the following statement is correct about the program given below? #include
int main() { int x = 10; int &y = x; x++; cout<< x << " " << y++; return 0; }
1
2
3