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: The moment the manager came to know fraudulent action of his assistant, he order immediately dismissed him.

A No correction required

B ordered for immediately dismissal of him

C ordered his immediate dismissal

D immediately order dismissal of his

E immediately ordered his dismissed

Q2: Size of short integer and long integer would vary from one platform to another.

A False

B True

Q3: Which of the following statement is correct about the program given below?
#include<iostream.h> 
int main()
{
    int m = 2, n = 6;
    int &x = m++;
    int &y = n++;
    m = x++; 
    x = m++;
    n = y++;
    y = n++;
    cout<< m << ' ' << n; 
    return 0; 
}

A The program will print output 5 9.

B The program will print output 3 7.

C The program will print output 4 8.

D It will result in a compile time error.

E The program will print output 6 10.

Q4: What will be the output of the following program?
#include<iostream.h> 
class AptitudeTest
{
    public:
    AptitudeTest(int &x, int &y)
    {
        x++;
        y++;
    } 
};
int main()
{
    int a = 10, b = 20;
    AptitudeTest objBT(a, b); 
    cout<< a << ' ' << b; 
    return 0; 
}

A 10 20

B 11 21

C Garbage Garbage

D It will result in a compile time error.

Q5: 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 0;
}

A The program will print the output 1 2 3.

B The program will print the output 2 3 4.

C The program will print the output 0 1 2.

D It will result in a compile time error.

Q6:
Which of the following statement is correct about the program given below?
#include<iostream.h> 
int main()
{
    int arr[] = {1, 2 ,3, 4, 5}; 
    int &zarr = arr;
    for(int i = 0; i <= 4; i++)
    {
        arr[i] += arr[i];
    }
    for(i = 0; i <= 4; i++)
        cout<< zarr[i]; 
    return 0; 
}

A The program will print the output 1 2 3 4 5.

B The program will print the output 2 4 6 8 10.

C The program will print the output 1 1 1 1 1.

D It will result in a compile time error.

Q7: Which of the following statement is correct about the program given below?
#include<iostream.h> 
struct Aptitude
{
    short n;
};
int main()
{
    Aptitude b;
    Aptitude& rb = b;
    b.n = 5;
    cout << b.n << ' ' << rb.n << ' ';
    rb.n = 8;
    cout << b.n << ' ' << rb.n;
    return 0; 
}

A It will result in a compile time error.

B The program will print the output 5 5 5 8.

C The program will print the output 5 5 8 8.

D The program will print the output 5 5 5 5.

Q8: What will be the output of the following program?
#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 = z; 
    p = ++q;
    q = ++p;
    z = ++q + p++; 
    cout<< p << ' ' << q << ' ' << z;
    return 0; 
}

A 2 3 6

B 4 4 7

C 4 5 8

D 3 4 6

Q9: Which of the following statement is correct about the program given below?
#include<iostream.h> 
int AptitudeFunction(int m)
{
    m *= m;
    return((10)*(m /= m)); 
}
int main()
{
    int c = 9, *d = &c, e;
    int &z = e;
    e = AptitudeFunction(c-- % 3 ? ++*d :(*d *= *d));
    z = z + e / 10;
    cout<< c << ' ' << e;
    return 0;
}

A It will result in a compile time error.

B The program will print the output 64 9.

C The program will print the output 64 10.

D The program will print the output 64 11.

Q10: Which of the following statement is correct about the program given below?
#include<iostream.h> 
class Aptitude
{
    int x, y; 
    public:
    Aptitude(int x, int y)
    {
        this->x = x;
        this->y = y;
    }
    void Display()
    {
        cout<< x << ' ' << y;
    }
};
int main()
{
    int x = 50;
    int &y = x ;
    Aptitude b(y, x);
    return 0; 
}

A The program will print the output 50 50.

B The program will print the two garbage values.

C It will result in a compile time error.

D The program will print nothing.