Attributes can be applied to
[A].
[B].
[C].
[D].
Answer: Option B
Explanation:
No answer description available for this question.
[B].
[C].
[D].
Answer: Option B
Explanation:
No answer description available for this question.
Answer: Option B
#include
void Tester(float xx, float yy = 5.0);
class IndiaBix
{
    float x;
    float y;
    public:
    void Tester(float xx, float yy = 5.0)
    {
        x = xx;
        y = yy;
        cout<< ++x % --y; 
    }
};
int main()
{
    IndiaBix objBix;
    objBix.Tester(5.0, 5.0);
    return 0; 
}
[A].The program will print the output 0.
[B].The program will print the output 1.
[C].The program will print the output 2.
[D].The program will print the output garbage value. 
Answer: Option E
[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 B
#include
class Base
{
    int x, y;
    public:
    Base()
    {
        x = y = 0;
    }
    Base(int xx)
    {
        x = xx;
    }
    Base(int p, int q = 10)
    {
        x = p + q;
        y = q;
    }
    void Display(void)
    {
        cout<< x << " " << y << endl;
    } 
}objDefault(1, 1);
class Derived: public Base
{
    Base obj; 
    public:
    Derived(int xx, int yy): Base(xx, xx + 1)
    { }
    Derived(Base objB = objDefault)
    { } 
}; 
int main()
{
    Derived objD(5, 3);
    Derived *ptrD = new Derived(objD);
    ptrD->Display();
    delete ptrD;
    return 0;
}
[A].3 2
[B].8 3
[C].11 6
[D].11 10 
Answer: Option C
#include
int main()
{
    int x = 80;
    int y& = x;
    x++;
    cout << x << " " << --y;
    return 0;
}
[A].The program will print the output 80 80.
[B].The program will print the output 81 80.
[C].The program will print the output 81 81.
[D].It will result in a compile time error. 
Answer: Option D