Q.1.

Which of the following statement is correct?

Q.2.

Which of the following statement is correct?

Q.3.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
class Bix
{
    int x, y; 
    public:
    Bix(int x, int y)
    {
        this->x = x;
        this->y = y;
    }
    void Display()
    {
        cout<< x << " " << y;
    }
};
int main()
{
    int x =    int &y = x ;
    Bix b(y, x);
    return
}
Q.4.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int x =y =    int *ptr = &x;
    int &ref = y;

    *ptr++;
     ref++;    

    cout<< x << " " << y;
    return
}
Q.5.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int i, j; 
class IndiaBix
{
    public:
    IndiaBix(int x =int y =    {
        i = x; 
        j = x; 
        Display();
    }
    void Display()
    {
        cout<< j <<" ";
    } 
}; 
int main()
{
    IndiaBix objBix(20); 
    int &s = i; 
    int &z = j; 
    i++;
    cout<< s-- << " " << ++z; 
    return
}
Q.6.

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.
Q.7.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
enum xyz
{
    a, b, c
};
int main() 
{
    int x = a, y = b, z = c;
    int &p = x, &q = y, &r = z;
    p = ++x;
    q = ++y;
    r = ++c;
    cout<< p << q << r;
    return}
Q.8.

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.
Q.9.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int x =
    int y& = x;
    x++;
    cout << x << " " << --y;
    return}
Q.10.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int m =n =    int &x = m;
    int &y = n;
    m = x++; 
    x = m++;
    n = y++;
    y = n++;
    cout<< m << " " << n; 
    return
}
Q.11.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
class IndiaBix
{
    int x, y; 
    public:
    void SetValue(int &xx, int &yy)
    {
        x =  xx++;
        y =  yy; 
        cout<< xx << " " << yy;
    }
};
int main()
{
    int x =    int &y = x;
    IndiaBix objBix;
    objBix.SetValue(x , y);
    return
}
Q.12.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int x =    int &y = x; y =
    while(x <=    {
        cout<< y++ << " ";
        x++;
    }
    cout<< x; 
    return
}
Q.13.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int x, y; 
class BixTest
{
    public:
    BixTest(int xx =int yy =    {
        x = xx;
        y = yy;
        Display(); 
    } 
    void Display()
    {
        cout<< x << " " << y << " ";
    }
};
int main()
{
    BixTest objBT(20); 
    int &rx = x; 
    int &ry = y; 
    ry = x;
    rx = y;
    cout<< rx--; 
    return
}
Q.14.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int arr[] = {2 ,5}; 
    int &zarr = arr;
    for(int i =i <=i++)
    {
        arr[i] += arr[i];
    }
    for(i =i <=i++)
        cout<< zarr[i]; 
    return
}
Q.15.

A reference is declared using the _____ symbol.

Q.16.

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.
Q.17.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int x =
    int &y = x;
    x++;
    cout << x << " " << --y;
    return}
Q.18.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
class IndiaBix
{
    int x, y; 
    public:
    void SetValue(int &a, int &b)
    {
        a =        x = a;
        y = b;
        Display();
    }
    void Display()
    {
        cout<< x << " " << y; 
    }
};
int main()
{
    int x =    IndiaBix objBix;
    objBix.SetValue(x, x);
    return}
Q.19.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
int main()
{
    int m =n =    int &x = m++;
    int &y = n++;
    m = x++; 
    x = m++;
    n = y++;
    y = n++;
    cout<< m << " " << n; 
    return
}
Q.20.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
class IndiaBix
{
    int a, b, c; 
    public:
    void SetValue(int x, int y ,int z)
    {
        a = x;
        b = y;
        c = z;
    } 
    void Display()
    {
        cout<< a << " " << b << " " << c;
    } 
}; 
int main()
{
    IndiaBix objBix;
    int x  =    int &y = x;
    y =    objBix.SetValue(x, ++y, x + y);
    objBix.Display();
    return
}