Monday, April 28, 2008

Intergraph Placement Paper Technical

Intergraph C Langugage Skills Test Paper: Multiple choice type

1. find(int x,int y)
{ return ((xb)
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. 8. main() { inc(); ,inc(); , inc(); } inc() { static int x; printf("%d", ++x); } prints (a) 012, (b) 123, (c) 3 consecutive unprectiable numbers (d) 111. 9.preprocessing is done (a) either before or at begining of compilation process (b) after compilation before execution (c) after loading (d) none of the above. 10. printf("%d", sizeof("")); prints (a) error (b)0 (c) garbage (d) 1. 11.main() { int a=5,b=2; printf("%d", a+++b); } (a) results in syntax, (b) print 7, (c) print 8, (d) none, 12. process by which one bit patten in to another by bit wise operation is (a) masking, (b) pruning, (c) biting, (d) chopping, 13.value of automatic variable that is declared but not intialized will be (a) 0, (b) -1, (c) unpredictable, (d) none, 14. 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. 15. declaration enum cities{bethlehem,jericho,nazareth=1,jerusalem} assian value 1 to (a) bethlehem (b) nazareth (c)bethlehem & nazareth (d)jericho & nazareth 16. #include
#include
void main()
{
char buffer[82]={80};
char *result;
printf( "input line of text, followed by carriage return :\n");
result = cgets(buffer);
printf("text=%s\n",result);
}
(a) printf("length=%d",buffer[1]);
(b) printf("length=%d",buffer[0]);
(c) printf("length=%d",buffer[81]);
(d) printf("length=%d",buffer[2]);

17. consider scanf and sscanf function , which is true

(a) no standard function called sscanf
(b) sscanf(s,...) is equivalent to scanf(...) except that
input charecter are taken from string s.
(c) sscanf is equivalent to scanf.
(d) none of above.

18. #include
main()
{
char line[80];
scanf("%[^\n]",line);
printf("%s",line);
}
what scanf do ?
(a) compilation error . illegal format string.
(b) terminates reading input into variable line.
(c) and (d) other two options.

19. problem was big so i couldn't remember . simple one.

20 . ceil(-2.8) ?
(a) 0
(b) -3.0
(c) -2.0
(d) 2

21. for( p=head; p!=null; p= p -> next)
free(p);

(a) program run smooth.
(b) compilation error.
(c) run time error.
(d) none of above.

22. int x[3][4] ={
{1,2,3},
{4,5,6},
{7,8,9}
}
(a) x[2][1] = x[2][2] =x[2][3] = 0
(b) value in fourth column is zero
(c) value in last row is zero
(d) none of above.

23. problem was big so i couldn't remember . simple one.

24. main ()
{
printf("%u" , main());
}
(a) print garbage.
(b) execution error
(c) printing of starting address of function main.
(d) infinite loop.

25 . int a, *b = &a, **c =&b;
....
....
.....
a=4;
** c= 5;

(a) doesnot change value of a
(b) assign address of c to a.
(c) assign value of b to a.
(d) assign 5 to a.

26.problem was big so i couldn't remember . simple one.

27.problem was big so i couldn't remember . simple one.

28 . answer : swapping of values .

29 . simple one.

30 . i =5;
i= (++i)/(i++);
printf( "%d" , i);
prints ,
(a) 2
(b) 5
(c) 1
(d) 6

in interview they will ask questions related to u r project and some c
fundas.


Model paper of Inetrgraph

1 question__ on analogy
1 " _______non verbal reasoning

ALL THESE ARE NOT TOUGH .AVERAGE LEVEL.
THEY HAVE GIVEN TWO TYPES OF PAPERS.HERE I AM GIVING THE PAPER WHICH
WAS WRITTEN BY MY FRIEND.


1.there are 6 (p,q,r,s...)people.each one play one game
#NAME?
clues given like:shortest one plays hokey
largest person plays ..tennis
P,Q ARE NEITHER LARGEST NOR SHORTEST
R PLAYS FOOTBALL
s is between t &r in height
question: who plays which game
who is taaller than whom
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 leat 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 / prifit he
will gain on both.

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

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

7.on ,C, paper is easy.mostly on pointers,3 question on structures,5 on
fundamentals,
8.ex:define max 10

main()
{int a,b;
int *p,*q;
a=10;b=19;
p=&(a+b);
q=&max;
} Q a)error in p=&(a+b) b)error in p=&max c)error in both d) no error

Intergraph Programming questions.
Keep watching for more Intergraph placement papers and technical, hr interview questions here .

No comments: