image not found

Oops! That page can't be found.


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.

Q1: Most of the Indian workers are as healthy as, if not healthier than, British workers.

A so healthy, if not healthier

B healthier but not as healthy

C No correction required

D as healthy, if not healthier

E as if healthy as not healthier

Q2: What will be the output of the following program?
#include<iostream.h> 
struct MyData
{
    public:
    int Addition(int a, int b = 10)
    {
        return (a *= b + 2);
    }
    float Addition(int a, float b);
};
int main()
{
    MyData data;
    cout<<data.Addition(1)<<' ';
    cout<<data.Addition(3, 4);
    return 0; 
}

A Compilation fails.

B 18 12

C 3 14

D 12 12

E 12 18

Q3: Which of the following statement is correct about the program given below?
#include<iostream.h>
int AptitudeTest(int x, int y);
int AptitudeTest(int x, int y, int z = 5);
int main()
{
    cout<< AptitudeTest(2, 4) << endl; 
    return 0;
}
int AptitudeTest(int x, int y)
{
    return x * y;
}
int AptitudeTest(int x, int y, int z = 5)
{
    return x * y * z; 
}

A The program will report compile time error.

B The program will print the output 8.

C The program will print the output 5.

D The program will print the output 40.

Q4: What will be the output of the following program?
#include<iostream.h> 
class AptitudeCrackSample
{
    public:
        int   a; 
        float b;
        void AptitudeFunction(int a, float b, float c = 100.0f)
        {
            cout<< a % 20 + c * --b;
        } 
}; 
int main()
{   AptitudeCrackSample objAptitude;
    objAptitude.AptitudeFunction(20, 2.000000f, 5.0f);
    return 0; 
}

A 5

B 0

C -5

D None of these

E 100

Q5: Which of the following statement is correct about the program given below?
#include<iostream.h>
void Tester(int xx, int yy = 5);
class AptitudeCrack
{
    int x; 
    int y; 
    public:
    void Tester(int xx, int yy = 5)
    {
        x = xx;
        y = yy;
        cout<< ++x % --y; 
    }
};
int main()
{
    AptitudeCrack objAptitude;
    objAptitude.Tester(5, 5);
    return 0; 
}

A The program will print the output 0.

B The program will print the output 2.

C The program will report compile time error.

D The program will print the output garbage value.

E The program will print the output 1.

Q6: Which of the following statement is correct about the program given below?
#include<iostream.h> 
class PowerFinder
{
    public:
    void Power(int x = 1, int y = 1)
    {
        int P = 1, i = 1;
        while(++i <= y)
        {
            P *= x;
        }
        cout<< P << endl; 
    } 
};
int main()
{
    PowerFinder FP; 
    FP.Power(2, 6); 
    return 0;
}

A The program will execute infinite time.

B The program will print the output 32.

C The program will print the output 16.

D The program will print the output 36.

E The program will print the output 12.

Q7: Which of the following statement is correct about the program given below?
#include<iostream.h>
void Tester(float xx, float yy = 5.0);
class AptitudeCrack
{
    float x; 
    float y; 
    public:
    void Tester(float xx, float yy = 5.0)
    {
        x = xx;
        y = yy;
        cout<< ++x % --y; 
    }
};
int main()
{
    AptitudeCrack objAptitude;
    objAptitude.Tester(5.0, 5.0);
    return 0; 
}

A The program will report compile time error.

B The program will print the output 1.

C The program will print the output 2.

D The program will print the output 0.

E The program will print the output garbage value.

Q8: Which of the following statement is correct about the program given below?
#include<iostream.h>
const double AptitudeConstant(const int, const int = 0);
int main()
{
    const int c = 2 ;
    cout<< AptitudeConstant(c, 10)<< ' '; 
    cout<< AptitudeConstant(c, 20)<< endl; 
    return 0;
}
const double AptitudeConstant(const int x, const int y)
{
    return( (y + (y * x) * x % y) * 0.2);
}

A The program will print the output 20 4.50.

B The program will report compile time error.

C The program will print the output 20 40.

D The program will print the output 10 20.

E The program will print the output 2 4.

Q9: Which of the following statement is correct about the program given below?
#include<iostream.h> 
struct MyStructure
{
    class MyClass
    {
        public:
        void Display(int x, float y = 97.50, char ch = 'a')
        {
            cout<< x << ' ' << y << ' ' << ch;
        }
    }Cls; 
}Struc;
 
int main()
{
    Struc.Cls.Display(12, 'b');
    return 0; 
}

A The program will print the output 12 Garbage b.

B The program will print the output 12 97.50 b.

C The program will print the output 12 97.50 a.

D The program will print the output 12 Garbage a.

E The program will print the output 12 98 a.

Q10: Which of the following statement is correct about the program given below?
#include<iostream.h> 
long FactFinder(long = 5); 
int main()
{
    for(int i = 0; i<= 0; i++)
        cout<< FactFinder() << endl; 
    return 0;
}
long FactFinder(long x)
{
    if(x < 2)
        return 1; 
    long fact = 1; 
    for(long i = 1; i <= x-1; i++)
        fact = fact * i; 
    return fact; 
}

A The program will print the output 120.

B The program will report compile time error.

C The program will print the output 24.

D The program will print the output 1.

E The program will print the output garbage value.