Subscribe:Posts Comments | Read Articles on Various Topics - Pro Articles

You Are Here: Home » Intergraph Test Papers, Sample Placement Papers » Intergraph Placement Paper – C Skills Paper

Intergraph C Langugage Skills Test Paper Multiple Choice Questions and answers

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.

The questions in between are not available.

 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 called
 (a) masking,
 (b) pruning,
 (c) biting,
 (d) chopping,
 
 C, C++ language multiple choice questions and options given here. You
  just have to tick mark the correct questions. Dont go for guesses as there is negative marking according to the exam test paper instructions.
 13.What is the value of automatic variable that is declared but not intialized?
 (a) 0,
 (b) -1,
 (c) unpredictable,
 (d) none,
 
 14. int v=3,
 *pv=&v; printf(” %d %d “, v,*pv);
 What will be the output of the program?
 (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
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 of the following 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 is the function of scanf ?
(a) compilation error . illegal format string.
(b) terminates reading input into variable line.
(c) and (d) other two options.

19. A simple program. You have to find the output.

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);
What will happen among the following?
(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 these

23. NA

24. main ()
{
printf(“%u” , main());
}
Which of the following is true?
(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 the address of c to a.
(c) assign the value of b to a.
(d) assign 5 to a.

26. Simple problem (NA)

27. Simple problem (NA)

28. About swapping of values .

29 . Again a simple program (NA)

30 . i =5;
i= (++i)/(i++);
printf( “%d” , i);
prints ,
(a) 2
(b) 5
(c) 1
(d) 6
Interview Questions are related to some basic C language topics. Just the basic explanations they require from you about c language.

(Two codes or sets of the Intergraph placement papers are given here with answers. Just go through them)
A Model paper of Intergraph
Intergraph Placement Exam Test Question Paper for joint campus placement drive

1 question on analogy
1 non verbal reasoning

The questions are not tough. Some selected ones from RS aggarwal and few from barons.
The Intergraph guys  gave two types of question papers. Here are some questions from the other placement paper.
1.there are 6 (p,q,r,s..) people. Each one play one game #NAME?
hints given like: shortest one plays cricket
Biggest person plays tennis
p,q are neither largest nor shortest
r plays football
s is between t & r in height
question is like who is the tallest (among some options) and who plays what game?

2. A cube has colors blue, red, yellow each on two opposite sides. Cube is divided into “32 small cubes and 4 large cubes”.
How many cubes (on 36 cubes) have blue at least on one side?
How many cubes have colors on two sides.

3.analogy: cell: tissue::atom:?

4.A person sold two things for Rs 80 each. He made 20 percent profit on one and made 20% loss on the other thing. What is the total profit or loss he made?

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 15/10*75=?

7.Placement paper questions about c language are related to 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;
}
Which of the following is true?
a)error in p=&(a+b) b)error in p=&max c)error in both d) no error

See more Intergraph C and C++ Programming questions with answers and solutions here. View the latest placement papers for Delhi, Chandigarh, Chennai, Bangalore, Hyderabad, New delhi, noida, kolkata, thiruvananthapuram orissa, mumbai, mohali, jalandhar ptu, etc. with complete detail, sets answer keys and complete hr technical interview questions with answers and group discussion gd topics and guides only on LatestExams.com

Related Posts

    Leave a Reply

    © Copyright 2010 Latestexams. All Rights Reserved | Privacy Policy | Terms & Conditions