image not found

Oops! That page can't be found.


Q1: The present worth of Rs. 2310 due 2 years hence, the rate of interest being 15% per annum, is:

A Rs. 1750

B Rs. 1680

C Rs. 1840

D Rs. 1443.75

Directions to Solve

Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer.

Q2: The people generally try to curry favour with the corrupt but influential person.

A No correction required

B cook favour

C seek favour

D extract favour

E display favour

Q3: What will be the output of the following program?
#include<iostream.h> 
class AptitudeBase
{
    public:
    int x, y;
    AptitudeBase(int xx = 0, int yy = 5)
    {
        x = ++xx; 
        y = --yy;
    }
    void Display()
    {
        cout<< --y;
    } 
    ~AptitudeBase(){} 
};
class AptitudeDerived : public AptitudeBase
{
    public:
    void Increment()
    {
        y++;
    }
    void Display()
    {
        cout<< --y;
    } 
}; 
int main()
{
    AptitudeDerived objAptitude;
    objAptitude.Increment();
    objAptitude.Display();
    return 0; 
}

A The program will report compile time error.

B 3

C 5

D 4

E Garbage-value

Q4: What will be the out of the following program?
#include<iostream.h> 
class AptitudeBase
{
    protected:
    int x, y; 
    public:
    AptitudeBase(int xx = 0, int yy = 0)
    {
        x = xx;
        y = yy; 
    } 
    void Show()
    {
        cout<< x * this->y << endl;
    }
};
class AptitudeDerived
{
    private:
        AptitudeBase objBase; 
    public:
    AptitudeDerived(int xx, int yy) : objBase(xx, yy)
    {
        objBase.Show();
    } 
    ~AptitudeDerived()
    { }
};
int main()
{
    AptitudeDerived objDev(10, 20); 
    return 0;
}

A 200

B 400

C 100

D 0

E The program will report compile time error.

Q5: Which of the following statement is correct about the program given below?
#include<iostream.h> 
class AptitudeCrack
{
    int x; 
    public:
        AptitudeCrack()
        {
           x = 0;
        }
        AptitudeCrack(int xx)
        {
            x = xx; 
        }
        AptitudeCrack(AptitudeCrack &objB)
        {
            x = objB.x; 
        }
        void Display()
        {
            cout<< x << ' ';
        }
};
int main()
{
    AptitudeCrack objA(25);
    AptitudeCrack objB(objA);
    AptitudeCrack objC = objA;
    objA.Display();
    objB.Display();
    objC.Display();
    return 0; 
}

A The program will print the output Garbage 25 25 .

B The program will print the output 25 25 25 .

C The program will print the output 25 Garbage 25 .

D The program will report compile time error.

Q6: Which of the following statement is correct about the program given below?
#include<iostream.h> 
class AptitudeCrack
{
    int x, y; 
    public:
        AptitudeCrack()
        {
            x = 0;
            y = 0; 
        }
        AptitudeCrack(int xx, int yy)
        {
            x = xx;
            y = yy; 
        }
        AptitudeCrack(AptitudeCrack *objB)
        {
            x = objB->x;
            y = objB->y; 
        }
        void Display()
        {
            cout<< x << ' ' << y;
        }
};
int main()
{
    AptitudeCrack objAptitude( new AptitudeCrack(20, 40) );
    objAptitude.Display();
    return 0; 
}

A The program will print the output 0 0 .

B The program will print the output 20 40 .

C The program will print the output Garbage Garbage .

D The program will report compile time error.

Q7: What will be the out of the following program?
#include<iostream.h> 
class AptitudeBase
{
    public:
    int x, y; 
    public:
    AptitudeBase(int xx = 0, int yy = 0)
    {
        x = xx;
        y = yy; 
    } 
 };
class AptitudeDerived : public AptitudeBase
{
    private:
        AptitudeBase objBase; 
    public:
    AptitudeDerived(int xx, int yy) : AptitudeBase(xx), objBase(yy)
    {
        cout << this->x   << ' ' 
             << this->y   << ' '  
             << objBase.x << ' '
             << objBase.y << ' ';
    } 
    ~AptitudeDerived()
    { }
};
int main()
{
    AptitudeDerived objDev(11, 22); 
    return 0;
}

A 11 0 22 0

B 11 22 11 22

C 11 22 0 0

D The program will report compile time error.

E 11 0 0 22

Q8: What will be the out of the following program?
#include<iostream.h> 
class AptitudeBase
{
    public:
    int x, y; 
    public:
    AptitudeBase(int xx = 0, int yy = 0)
    {
        x = xx;
        y = yy; 
    } 
 };
class AptitudeDerived : public AptitudeBase
{
    private:
        AptitudeBase objBase; 
    public:
    AptitudeDerived(int xx, int yy) : AptitudeBase(xx), objBase(yy)
    {
        cout << x          << ' ' 
             << this->x    << ' '  
             << AptitudeBase::x << ' '     
             << this->objBase.x ;
    } 
    ~AptitudeDerived()
    { }
};
int main()
{
    AptitudeDerived objDev(11, 22); 
    return 0;
}

A 11 11 11 22

B 11 11 11 0

C The program will report compile time error.

D 11 11 0 22

E 11 22 0 0

Q9: Which of the following function prototype is perfectly acceptable?

A float Function(int Tmp = Show(int, float));

B float = Show(int, float) Function(Tmp);

C int Function(int Tmp = Show());

D Both A and B.

Q10: Which of the following statement is correct?

A Both A and B.

B We cannot change the argument of the function that that are declared as constant.

C C++ enables to define functions that take constants as an argument.

D We cannot use the constant while defining the function.