GRAPE CITY PLACEMENT PAPER (Analytical, Logical )

 

Analytical Ability

 

In a game exactly 6 inverted cups stand side by side in a straight line & each exactly has 1 ball hidden under it. The cups are numbered consecutively 1 thro’ 6. Each of the balls is painted a single solid color. The colors of the balls are green, magenta, orange ,purple, red & yellow. The balls have been hidden under following conditions:

 

The purple ball must be hidden under a lower-numbered cup than the original ball.

 

The red ball must be hidden under a cup immediately adjacent 2 the cup under which the magenta ball is hidden

 

The green ball must be hidden under cup 5.

 

1. which of the following could be colors of balls from 1 to 6?

 

green, yellow, magenta, red, purple, orange

 

magenta, green , purple, red, orange, yellow

 

magenta, red , purple, yellow, green , orange

 

orange, yellow. Red, magenta, green, purple

 

red, purple, magenta, yellow, green, orange

 

2. if red ball is under cup4 ? how many sequences are possible

 

a. 0

 

b. 1

 

c. 2

 

d. 3

 

e. 4

 

3. which is true?

 

a. green ball is under lower-numbered than the yellow ball.

 

b. orange ball is under lower-numbered than the green ball.

 

c. purple ball is under lower-numbered than the green ball.

 

d. purple ball is under lower-numbered than the RED ball.

 

e. Red ball is under a lower- numbered cup than the yellow ball

 

4. If red & orange ball are kept 0ofadjacnet to each other, how many valid sequences are possible?

 

a. 1

 

b. 2

 

c. 3

 

d. 4

 

e. 5

 

5. If the magenta is bill is under cup, 1 balls of which of them following colors must be under cops immediately adjacent to each other??

 

a. gree & orange.

 

b. Green & yellow

 

c. Purple & tred

 

d. Purple & yellow

 

e. Red & yellow

 

6. X & Y are +ve integers. The sum of X&Y is less then their product

 

a. at least one of X & Y is not 1

 

b. both X & Y are greater than 2

 

c. neither takes value 1

 

d. at least one of X & Y is greater than 2

 

Logical Reasoning

 

41. He greatest chance for the existence of extraterrestrial life is on a planet beyond our solar system. This is bcoz the Milky Way galaxy alone contains 100 billion other suns, many of which could be accompanied by planets similar enough to make them suitable abodes of life.

 

The argument above assumes which of following?

 

a. living creatures on another planet would probably have the same appearance as those on earth

 

b. life cannot exist on other planets in solar system

 

c. if the appropriate physical conditions exist, life is an inevitable consequence

 

d. more than one of the suns in the galaxy is accompanied by an earth like planet

 

e. it is likely that life on another plane would require conditions similar to those on earth

 

QUESTION (AGE)

 

I. Ram is 10 yrs. Older than shym , while laxman is half the age of shyam

 

II. Bharat is 5 yrs. Younger than laxman , & shyam is 3 times older than bharat

 

1. what is the age of ram

 

2. age of laxman?

 

3. when ram married sita , she was half his age . now sita’s age & shyam’s age add upto 50 yrs. Wwhat is sita’s age?

 

4. ratio between. Shayam's age & bharat’s age

 

5. ratio betn laxman & bhara ‘s age

 

6. bharat’s wife radha married him 10 yrs before the present year. What is radha’s age?

GRAPE CITY PLACEMENT PAPER (TECHNICAL- C C++)

1.whenever the data type might be many bytes , & the function does not change the parameter within it body

 

2. A is a class & B is a new class derived from A

 

A a;

 

B b;

 

Bb1;

 

B b2;

 

 

3. what c++ syntax is used to declare that a class B is derived from Class A”

 

a. class A derives B {……};

 

b. class B: public A {,……..};

 

 

 

4. using the variable , which is legat?

 

a. a=b;

 

b. b=a;

 

c. b1=b2;

 

d. both a & b are legal but not c;

 

e. both a & c are legal but not b;

 

f. both b & c are legal , but not a;

 

 

 

5. suppose there are 2 fns. F has an argument of type A and g has an argument of type B. Which is correct?

 

a. both f(a) & g(a) are legal fn. Calls

 

b. f(a) is legal , but g(a) is not legal

 

c. f(a) is not legal , g(a) is legal

 

d. neither f(a) nor g(a) is legal fn call

 

6. template

 

void foo(Item x);

 

which is right way to call with integer argument I?

 

a. foo(i);

 

b. foo (i);

 

c. foo(i);

 

d. foo( i);

 

e. foo( i);

 

 

 

7. void quiz(int w)

 

{

 

if(w>1)

 

{ quiz (w/2);

 

quiz(w/2);

 

}

 

printf(“*”);

 

 

}

 

how many asterisks are printed by the function call quiz(5)?

 

a. 3

 

b. 4

 

c. 7

 

d. 8

 

 

8. void test_a (int n)

 

{

 

printf(“%d”,n);

 

if(n>0)

 

test_a(n-2);

 

}

 

test_a(4)?

 

 

 

a . 0 2 4

 

c. 0 2

 

d. 2 4

 

e. 4 2

 

f. 4 2 0

 

 

 

9. char string[8]=”abcdefg”;

 

*string=’\0’;

 

printf(“%s”,string);

 

a. compiler error

 

b. run-time error

 

c. no o/p, but no error

 

d. creates bcdefg

 

 

 

10. char string[8]=”abcdefg”

 

o/p :

 

printf(“%s\n”,string +3);

 

abcdefg

 

abc

 

defg

 

cdefg

 

 

 

11. main()

 

{ int I=-3, j=2,k=0,m;

 

m=++I&&++j||++k;

 

printf(“\n%d%d%D”, I,j,k,m);

 

 

A. –2 3 0 1

 

B. –2 3 1 1

 

C. –2 3 1 0

 

D. –2 3 0 0

 

 

 

12. main()

 

{

 

int I;

 

for(;;)

 

{

 

printf(“%d”,I++)

 

if(I>10)

 

break;

 

}

 

}

 

a. condition in a for-loop is mudt

 

b. no error

 

c. 2 ; shud be dropped

 

 

13.void goop ( int z[]);//prototype

 

int x[10];

 

which ois the correct way to call goop

 

a. goop(x);

 

b. goop(x[]);

 

c. goop(x[10]);

 

d. goop(&x);

 

e. goop(&x[]);

 

 

 

14. int a=3,b=17;

 

a=b%a;

 

b=++a+5;

 

printf(“a,b);

 

 

A. 2 8

 

B. 2 7

 

C. 3 7

 

D. 2 8

 

E. none

 

 

15. how many time hello will be printed?

 

FILE *fp=fopen(“test.txt”,w)

 

Fprintf(fp,”hello”);

 

Fork();

 

A. 1

 

B. 2

 

C. 0

 

D. none

 

 

 

16. int a;

 

int b=0;

 

while(a)

 

{

 

{ a&=a-1;

 

b++;

 

}

 

A. a &b

 

B. 0 & 15

 

C. 1 & 16

 

D. 0 & 16

 

E. none

 

 

17. class A

 

{

 

public:

 

static int a;

 

A() {a=10};

 

};

 

int main()

 

{

 

A b;

 

Printf(“%d”,b.a);

 

Return 0;

 

}

 

will the program compile?

 

a  yes

 

b.  no