# GMR Group Written Test January 2012

Posted on :01-04-2016

ARITHMETIC ABILITY:

Q1. There are some 20 Basketball players & 30 Football players and 25 cricket players. 1 of them plays all the three games. 8 of them plays atleast two games. They are 50 altogether.  How many of them plays none of the games?

Q2. If the length of the rectangle is reduced by 20% and breadth is increased by 20 %, what is the net change?

ANS: 4 % decrease

Q3. If the area of the square is increased by 69 %, how much the length of the side will increase?

ANS: 30%

Q4. B is 20 miles east of A. D is 30 miles east of C. E is 10 miles north of D. C is 20 miles north of B. How far E is from A?

Q5. If the sum of five consecutive numbers is 35, how many prime numbers are there?

ANS: 2 primes.

TECHNICAL SECTION:

Q6. What is the error in the following program?

main()
{ int I; for(;;)
{ printf(%d,I++)
if(I>10) break; } }

a. condition in a for-loop is must
b. no error
c. 2 ; should be dropped

Q7. If W is a sequence of strings without a and W is its reversal, then WaW is accepted by:

ANS: Context Free Grammars

Q8.

void goop ( int z[]);
//prototype int x;

which one is the correct way to call goop?

a. goop(x);
b. goop(x[]);
c. goop(x);
d. goop(&x);
e. goop(&x[]);

Q9. What is the output of the following program?

char string  =abcdefg;
*string=;
printf(%s,string);

a. compiler error
b. run-time error
c. no o/p, but no error
d. creates bcdefg

Q10. What is the output of the following program?

main()
{ int I=-3, j=2,k=0,m;
m=++I&&++j||++k;
printf( %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

Q11. What is the output of the following program?

char string=abcdefg o/p : printf(%s ,string +3);

a. abcdefg
b. abc
c. defg
d. cdefg

Register