image not found

Oops! That page can't be found.


Directions to Solve

In questions below, each passage consist of six sentences. The first and sixth sentence are given in the begining. The middle four sentences in each have been removed and jumbled up. These are labelled as P, Q, R and S. Find out the proper order for the four sentences.

Q1:
S1: In the middle of one side of the square sits the Chairman of the committee, the most important person in the room.
P : For a committee is not just a mere collection of individuals.
Q : On him rests much of the responsibility for the success or failure of the committee.
R : While this is happening we have an opportunity to get the 'feel' of this committe.
S : As the meeting opens, he runs briskly through a number of formalities.
S6: From the moment its members meet, it begins to have a sort nebulous life of its own.
The Proper sequence should be:

A QSRP

B SQPR

C PQRS

D RSQP

Q2: Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1

A = * / % + -

B / * % - + =

C / * % - + =

D * / % + - =

Q3: What will be the output of the following program?
#include<iostream.h> 
int main()
{
    float Amount;
    float Calculate(float P = 5.0, int N = 2, float R = 2.0);
    Amount = Calculate(); 
    cout<< Amount << endl; 
    return 0;
}

float Calculate(float P, int N, float R)
{
    int Year = 1;
    float Sum = 1 ;
    Sum = Sum * (1 + P * ++N * R);
    Year =  (int)(Year + Sum);
    return Year; 
}

A 32

B None of these

C 22

D 31

E 21

Q4: What will be the output of the following program?
#include<iostream.h> 
class Aptitude
{
    int x, y; 
    public:
    void show(void);
    void main(void);
};
void Aptitude::show(void)
{ 
    Aptitude b;
    b.x = 2;
    b.y = 4;
    cout<< x << ' ' << y;
}
void Aptitude::main(void)
{
    Aptitude b;
    b.x = 6; 
    b.y = 8;
    b.show();
}
int main(int argc, char *argv[])
{
    Aptitude run;
    run.main();
    return 0; 
}

A 2 4

B The program will report error on Run-time.

C The program will report error on Compilation.

D The program will report error on Linking.

E 6 8

Q5: Which of the following statement is correct about the program given below?
#include<iostream.h> 
class AptitudeCrackSample
{
    private:
    int AdditionOne(int x, int y = 1) 
    {
        return x * y;
    }
     
    public:
    int AdditionTwo(int x, int y = 1)
    {
        return x / y;
    } 
}; 
int main()
{
    AptitudeCrackSample objAptitude;
    cout<<objAptitude.AdditionOne(4, 8)<<' '; 
    cout<<objAptitude.AdditionTwo(8, 8); 
    return 0;
}

A The program will print the output 32 garbage-value.

B The program will print the output 32 1.

C The program will report compile time error.

D The program will print the output 32 0.

Q6: What will be the output of the following program?
#include<iostream.h> 
class AptitudeCrack
{
    int K; 
    public:
    void AptitudeFunction(float, int , char);
    void AptitudeFunction(float, char, char);
    
};
int main()
{
    AptitudeCrack objIB;
    objIB.AptitudeFunction(15.09, 'A', char('A' + 'A'));
    return 0;
}
void AptitudeCrack::AptitudeFunction(float, char y, char z)
{
    K = int(z);
    K = int(y);
    K = y + z;
    cout<< 'K = ' << K << endl; 
}

A The program will report compile time error.

B The program will print the output M = 130.

C The program will print the output M = 195.

D The program will print the output M = -21.

E The program will print the output M = -61.

Q7: What will be the output of the following program?
#include<iostream.h> 
class TestDrive
{
    int x; 
    public:
    TestDrive(int xx)
    {
        x = xx;
    }
    int DriveIt(void);
};
int TestDrive::DriveIt(void)
{
    static int value = 0;
    int m;
    m = x % 2;
    x = x / 2;
    if((x / 2)) DriveIt(); 
    value = value + m * 10; 
    return value;
}
int main()
{
    TestDrive TD(1234);
    cout<< TD.DriveIt() * 10 << endl;
    return 0; 
}

A 200

B 400

C Garbage value

D 300

Q8: What will be the output of the following program?
#include<iostream.h> 
class AptitudeCrack
{
    int Num; 
    public:
    AptitudeCrack(int x)
    {
        Num = x;
    }
    int AptitudeFunction(void);
};
int AptitudeCrack::AptitudeFunction(void)
{
    static int Sum = 0; 
    int Dec;
    Dec = Num % 10; 
    Num = Num / 10; 
    if((Num / 100)) AptitudeFunction(); 
    Sum  = Sum * 10 + Dec; 
    return Sum;
}
int main()
{
    AptitudeCrack objAptitude(12345);
    cout<< objAptitude.AptitudeFunction();
    return 0; 
}

A 345

B 321

C 54321

D 12345

E 123

Q9: What is correct about the following program?
#include<iostream.h> 
class Addition
{
    int x; 
    public: 
    Addition()
    {
        x = 0;
    }       
    Addition(int xx)
    {
        x = xx;
    }
    Addition operator + (int xx = 0)
    {
        Addition objTemp; 
        objTemp.x = x + xx; 
        return(objTemp);
    }
    void Display(void)
    {
        cout<< x << endl;
    }
};
int main()
{
    Addition objA(15), objB;
    objB = objA + 5;
    objB.Display();
    return 0; 
}

A The program will print the garbage value.

B Compilation fails due to 'operator +' cannot have default arguments.

C The program will print the output 20.

D The program will report run time error.

Q10: What will be the output of the following program?
#include<iostream.h> 
class AreaFinder
{
    float l, b, h; 
    float result; 
    public:
    AreaFinder(float hh = 0, float ll = 0, float bb = 0) 
    {
        l = ll; 
        b = bb; 
        h = hh;
    }
    void Display(int ll)
    {
        if(l = 0)
            result = 3.14f * h * h; 
        else
            result = l * b; 
        cout<< result; 
    }
};
int main()
{
    AreaFinder objAF(10, 10, 20);
    objAF.Display(0); 
    return 0; 
}

A 314

B 200.0000

C 0

D 314.0000