# (Paper) Intergraph Placement Paper (C Skill &Aptitude)

**Paper: Intergraph
Placement Paper (C Skill &Aptitude)**

**C
skills :**

**1.**5-2-3*5-2 will give 18 if

(a)- is left associative,* has precedence over -

(b) - is right associative,* has precedence over -

(c) - is right associative,- has precedence over *

(d)- is left associative,- has precedence over *

**2.**printf("%f", 9/5);

prints

(a) 1.8,

(b) 1.0,

(c) 2.0,

(d) none

.

**3.**if (a=7)

printf(" a is 7 ");

else

printf("a is not 7");

prints

(a) a is 7,

(b) a is not 7,

(c) nothing,

(d) garbage.

**4.**if (a>b)

if(b>c)

s1;

else s2;

s2 will be executed if

(a) a<= b,

(b) b>c,

(c) b<=c and a<=b,

(d) a>b and b<=c.

**5.**printf("%d", sizeof(""));

prints

(a) error

(b)0

(c) garbage

(d) 1.

**6.**value of automatic variable that is declared but not initialized will be

(a) 0,

(b) -1,

(c) unpredictable,

(d) none,

**7.**int v=3, *pv=&v;

printf(" %d %d ", v,*pv);

output will be

(a) error

(b) 3 address of v,

(c) 3 3

(d) none.

**8.**declaration

enum cities{bethlehem,jericho,nazareth=1,jerusalem}

assian value 1 to

(a) bethlehem

(b) nazareth

(c)bethlehem & nazareth

(d)jericho & nazareth

**Aptitude:**

**1.**in a group of 5 persons a,b,c,d,e one of the person is advocate, one is doctor, one businesses man, one shop keeper and one is professor. three of them a,c,and professor prefer playing cricket to foot ball and two of them b and businessman prefer playing foot ball to cricket. the shop keeper and b and a are friends but two of these prefer playing foot ball to cricket. the advocate is c's brother and both play same game . the doctor and e play cricket.

**2.**a cube has colors blue, red ,yellow each on two opposite sides. cube is divided into "32 small cubes and 4 large cubes". question: how many cubes (on 36 cubes) have blue at least one side. how many cubes have colors on two sides.

**3.**anlogy: cell:
tissue::atom:?

**4.**aa person sold two articles for 80 /- each. with 20% profit on one article and 20% loss on another article, what is the loss / profit he will gain on both.

**5.**we don't no exact problem .

ex : 8a3b5c7d.....

a wiil be given + sign.

b will be given - sign.

find the value of expression ?

**6.**five cities. city1 is west to city3.city4 is east to city 5._____etc. which is farthest on west side.

**7.**one question on: -=+,*=-,/=* etc then 10/5*45=?

**8.**6 face of a cube are painted in a manner ,no 2 adjacent face have same colour. three colors used are red blue green. cube is cut in to 36 smaller cube in such a manner that 32 cubes are of one size and rest of them bigger size and each bigger side have no red side. following this three question will be asked .