Intergraph Placement Question Papers




Intergraph

Filed under:

Intergraph Placement Question Paper

Interview Pattern - Integra

the questions were easy there will be two or three question form each subject ,(c ,c++, data structures , 4 or 5 aptitude , 3 verbal questions and so on). the next round is a programming test where we have to write two or three programs in C or Java , the programs are

1.Get a set of strings from command line and print the strings with first letter in capital and other letters as small letters i,e you have to write a program for eg , printCaps.c .it will be run from the command line as > printCaps this is a saMPLE program the output should be This Is A Sample Program

2. I dint remember correctly , but i think the program is for sorting the alphabets in the given name eg . if the input is jawahar the output should be aaahjrw

3 . some program for implementing test cases i,e you have a program for sorting N numbers , you have to check the efficiency for sorting program, the input for the sorting program will be the value of N followed by N numbers

It seem to be difficult but the logic is easy first you have to generate the set of inputs and pass them to the sorting program you can store the input in files and redirect the input to the program from the file

for example
FILE *fp = fopen("input.txt","w");
fprintf ("%dn",n);
for(i = 0 ; i fprintf ("%dn",i);
fclose(fp);
write function for getting the time
system(” sorting.exe < input.txt"); // this will execute sorting.exe with the values in the file as input
write function for getting the time

compare the time and print the output

The next round was the technical interview they asked question from C++ overloading the question was to overload the ++ operator for an object the class file will be like this

class Integer
{
int i;
public Integer(int i)
{
this.i = i;
}
}
you have to write a function for overloading the ++ operator such that it behaves like the ++ operator we use for int s the cases are

Integer obji = new Integer(0); similar to int i = 5;

obj++ ; // should increment the value of the i in the class be 1 i++ ; value of i is 6
++ obj ; // should increment the value of the i in the class be 1 ++i ; value of i is 7

++obj = 5 ; // should give an error as LValue requeired ++i = 8 ; // will give an error LValue required

the solution is
class Integer
{
int i;
public Integer(int i)
{
this.i = i;
}
const Integer Operator++() // I hope the syntax is correct
{
i++;
}
}
add a const keyword before the over load operator so that ++obj = 5 ; will give the error lvalue required when we assign a value to a const object then they asked to tell about the default methods we have to write when writing a class in C++

1. Void constructor ()
2. copy constructor

though the compiler will not give any error if u dint write the above two , but it is a good habit to write them the other questions were easy and covers the basics of C and C++ like

1. what is the difference between calloc and malloc the next round was HR interview , In the interview they will ask your details and give the offer letter to you

Intergraph

Filed under:

Intergraph Placement Question Paper

important suggestions:

1. average preparation is enough to qualify foe interview.time is enough.

2.they are particular about academic background .

3.interview is only on personal details. no question on technical subjects

4.they may change paper sets also.

5.in outside recruitment they are asking more questions on CAD. but not in campus. in iitd they interviewed 5students out of 21 .selected 1,waiting list 1.

6.cut off cgpa:7.5

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

Intergraph

Analytical

q. draw venn diagram relating rhombus, quadrilateral & polygon

q. in a group of 5 persons a,b,c,d,e one of the person is advogate, one is doctor, one businesss 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 usinessman 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 advogate is c’s brother and both play same game . the doctor and e play cricket.

(a) who is advogate ?
a, b, c, d
(b) who is shop keeper ?
a, b, c, d
© which of the following group include persons who like playing cricket
but doesn’t include professor ?
ab,bc,cd, none
(d) who is doctor ?
a,b,c,d.

{ same model problem was asked in ques paper but professions will be different
such as horticulturist ,physicst,journalist,advocate and other one. instead of
football and cricket they will give tea and coffee }

q. they will give some condition’s and asked to find out farthest city in the west (easy one )?

q. travelling sales man problem .
some condition will be given we have to find out the order of station the sales man moves ( three ques’s )

q. +,-,*, /, will be given different meaning
example : take + as * and so on .
they will give expression and we have to find the value of that.

q. 3+5-2 =4
which has to be interchange to get the result ?

q. we don’t no exact problem .
ex : 8a3b5c7d…..
a wiil be given + sign.
b will be given - sign.
find the value of expression ?

q. find the total number of squares in 1/4 of chess board ?

q. 6 face of a cube are painted in a manner ,no 2 adjacent face have same colour. three colurs 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 ques will be asked .
{ in ques paper colors will be different }

q. two ladies ,two men sit in north east west south position of rectancular table. using clues identify their position ?

c skills

1. find(int x,int y)
{ return ((x call find(a,find(a,b)) use to find
(a) maximum of a,b
(b) minimum of a,b
© positive difference of a,b
(d) sum of a,b

2. integer needs 2bytes , maximum value of an unsigned integer is
(a) { 2 power 16 } -1
(b) {2 power 15}-1
© {2 power16}
(d) {2 power 15}

3.y is of integer type then expression
3*(y-8)/9 and (y-8)/9*3 yields same value if
(a)must yields same value
(b)must yields different value
©may or may not yields same value
(d) none of the above

4. 5-2-3*5-2 will give 18 if
(a)- is left associative,* has precedence over -
(b) - is right associative,* has precedence over -
© - is right associative,- has precedence over *
(d)- is left associative,- has precedence over *

5. printf("%f", 9/5);
prints
(a) 1.8,
(b) 1.0,
© 2.0,
(d) none
.
6. if (a=7)
printf(” a is 7 “);
else
printf("a is not 7″);
prints
(a) a is 7,
(b) a is not 7,
© nothing,
(d) garbage.

7. if (a>b)
if(b>c)
s1;
else s2;
s2 will be executed if
(a) a< = b,
(b) b>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,
© 3 consecutive unprectiable numbers
(d) 111.

9.preprocessing is done

(a) either before or at begining of compilation process
(b) after compilation before execution
© after loading
(d) none of the above.

10. printf("%d", sizeof(""));
prints
(a) error
(b)0
© garbage
(d) 1.

11.main()
{
int a=5,b=2;
printf("%d", a+++b);
}

(a) results in syntax,
(b) print 7,
© print 8,
(d) none,

12. process by which one bit patten in to another by bit wise operation is
(a) masking,
(b) pruning,
© biting,
(d) chopping,

13.value of automatic variable that is declared but not intialized
will be
(a) 0,
(b) -1,
© unpredictable,
(d) none,

14. int v=3, *pv=&v;
printf(” %d %d “, v,*pv);
output will be
(a) error
(b) 3 address of v,
© 3 3
(d) none.

15. declaration
enum cities{bethlehem,jericho,nazareth=1,jerusalem}
assian value 1 to
(a) bethlehem
(b) nazareth
©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=%sn",result);
}
(a) printf("length=%d",buffer[1]);
(b) printf("length=%d",buffer[0]);
© 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.
© 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.
© 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
© -2.0
(d) 2

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

(a) program run smooth.
(b) compilation error.
© 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
© 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
© 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.
© 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
© 1
(d) 6

Intergraph

Filed under:

Intergraph Placement Question Paper

1. complete the diagram :

four fig will be given , you have to draw the final one triangle fig :

2. draw venn diagram relating rhombus, quadrilateral & polygon

3.in a group of 5 persons a,b,c,d,e one of the person is advogate, one is doctor, one businesss 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 advogate is c’s brother and both play same game . the doctor and e play cricket.
(a) who is advogate ?
a, b, c, d
(b) who is shop keeper ?
a, b, c, d
© which of the following group include persons who like playing cricket
but doesn’t include professor ?
ab,bc,cd, none
(d) who is doctor ?
a,b,c,d.
{ same model problem was asked in ques paper but professions will be different such as horticulturist ,physicst,journalist,advocate and other one. instead of football and cricket they will give tea and coffee }

4. they will give some condition’s and asked to find out farthest city in the west (easy one )?

5. travelling sales man problem . some condition will be given we have to find out the order of station the sales man moves ( three ques’s )

6. +,-,*, /, will be given different meaning example : take + as * and so on . they will give expression and we have to find the value of that.

7. 3+5-2 =4 which has to be interchange to get the result ?

8. we don’t no exact problem .
ex : 8a3b5c7d…..
a wiil be given + sign.
b will be given - sign.
find the value of expression ?

9. find the total number of squares in 1/4 of chess board ?

10. 6 face of a cube are painted in a manner ,no 2 adjacent face have same colour. three colurs 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 ques will be asked . { in ques paper colors will be different }

11. two ladies ,two men sit in north east west south position of rectancular table. using clues identify their position ?
12. clock problem :
(one ques )

13. all men are vertebrate. some mammals are men. conclude.

c skills :

1. find(int x,int y)
{ return ((x call find(a,find(a,b)) use to find
(a) maximum of a,b
(b) minimum of a,b
© positive difference of a,b
(d) sum of a,b

2. integer needs 2bytes , maximum value of an unsigned integer is
(a) { 2 power 16 } -1
(b) {2 power 15}-1
© {2 power16}
(d) {2 power 15}

3.y is of integer type then expression
3*(y-8)/9 and (y-8)/9*3 yields same value if
(a)must yields same value
(b)must yields different value
©may or may not yields same value
(d) none of the above

4. 5-2-3*5-2 will give 18 if
(a)- is left associative,* has precedence over -
(b) - is right associative,* has precedence over -
© - is right associative,- has precedence over *
(d)- is left associative,- has precedence over *

5. printf("%f", 9/5);
prints
(a) 1.8,
(b) 1.0,
© 2.0,
(d) none

6. if (a=7)
printf(” a is 7 “);
else
printf("a is not 7″);
prints
(a) a is 7,
(b) a is not 7,
© nothing,
(d) garbage.

7. if (a>b)
if(b>c)
s1;
else s2;
s2 will be executed if
(a) a< = b,
(b) b>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,
© 3 consecutive unprectiable numbers
(d) 111.

9.preprocessing is done

(a) either before or at begining of compilation process
(b) after compilation before execution
© after loading
(d) none of the above.

10. printf("%d", sizeof(""));
prints
(a) error
(b)0
© garbage
(d) 1.

11.main()
{
int a=5,b=2;
printf("%d", a+++b);
}

(a) results in syntax,
(b) print 7,
© print 8,
(d) none,

12. process by which one bit patten in to another by bit wise operation is
(a) masking,
(b) pruning,
© biting,
(d) chopping,

13.value of automatic variable that is declared but not intialized
will be
(a) 0,
(b) -1,
© unpredictable,
(d) none,

14. int v=3, *pv=&v;
printf(” %d %d “, v,*pv);
output will be
(a) error
(b) 3 address of v,
© 3 3
(d) none.

15. declaration
enum cities{bethlehem,jericho,nazareth=1,jerusalem}
assian value 1 to
(a) bethlehem
(b) nazareth
©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=%sn",result);
}
(a) printf("length=%d",buffer[1]);
(b) printf("length=%d",buffer[0]);
© 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.
© 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.
© 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
© -2.0
(d) 2

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

(a) program run smooth.
(b) compilation error.
© 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
© 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
© 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.
© 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
© 1
(d) 6

Intergraph Placement Question Papers

Filed under:

Intergraph Placement Question Papers

1.there are 6 (p,q,r,s…)people.each one play one game —tennis,football,hockey,cricket etc clues given like:shortest one plays hokey largest person plays ..tennis P,Q ARE NEITHER LARGEST NOR SHORTEST R PLAYS FOOTBALLs 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

important suggestions:

1. average preparation is enough to qualify foe interview.time is enough.
2.they are particular about academic background .
3.interview is only on personal details.no question on technical subjects
4.they may change paper sets also.
5.in outside recruitment they are asking more questions on CAD.
but not in campus.
in iitd they interviewed 5students out of 21 .selected 1,waiting list 1.
6.cut off cgpa:7.5

Optimize the below 1,2,3,4 questions for time:

1)
int i;
if i=0 then i:=1;
if i=1 then i:=0;

2)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
(given that i can take only two values (1,0))

3)
int i;
if i=0 then i:=1;
else if i=1 then i:=0;
(given that i can take only two values (1,0))

4)
int m,j,i,n;
for i:=1 to n do
m:=m+j*n

5) Expand the following
a) ISDN
b) CASE
c) CSMA/CD
d) OOPS
e) MIMD

6) In the following questions, answer A,B,C,D depending on when
the errors are detected?
A if no error is detected
B if semantic and syntactic checking
C if during Code genration & Symbol allocation
D run time

a) Array overbound
b) Undeclared identifier
c) stack underflow
d) Accessing an illegal memory location

7) How many page faults will occur for below sequence of pages when LRU page replacement algorithm is used ( The memory can only have 3pages):1,2,3,4,2,1,5,2,4 (something like that)

8) If a CPU has 20 address lines but MMU does’nt use two of them.OS occupies 20K. No virtual memory is supported. What is the maximum memory available for a user program?

9) For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

10) Understand the funda of incrementing a variable using val++ and ++val . Some programs are given for error correction.

11) Learn datagram . (Computer networks)

12) Which of the following can be zero? (only one)
a) swap space
b) physical memory
c) virtual memory

13) What is a must for multitasking?
a) Process preemption
b) Paging
c) Virtual memory
d) None of the above

14) A question on call by value,
call by name,
call by reference.

f(x,y,z)
{
y := y+1;
z := z+x;
}
main()
{
int a,b;
a := 2
b := 2;
f(a+b,a,a);
print a;
}

what is the value of a printed for three different calls in main.

15) Using the following instructions and two registers , A&B.
find out A XOR B and put the result in A
PUSH
POP
NOR These instructions operates with A & B and puts the result in
AND A

(question basically to get XOR in terms of NOR and AND)

16) True/False questions:
1) The page size should be the power of 2.
2)

17)
int i=0;
int j=0;

loop:
if(i = 0)
i++;
i++;
j++;
if(j< = 25)
goto loop
xxx:
question1 : how many times is the loop entered

A few questions of that sort. some count fundaes. Easy one )

18) Who handles page faults?
a) OS
b) MMU
c) Hardware logic
d) etc etc….

19) For which of following is it not possible to write an algorithm.

a) To find out 1026th prime number
b) To write program for NP-complete problem
c) To write program which generates true Random numbers.
etc…

20) what is the essential requirement for an real-time systems

a) pre-emption
b) virtual memory
c) paging etc…

– Question bank collected ,compiled and edited by BPM and Baiju.

INTER GRAPH SOFTWARE

Analytical:

1. Given a cube, with different colors on its faces, and then is cut into 64 pieces, and the questions relate to the colors of different colored small cubes.

2. A few ladies and gents sit around table in some given order and 4 questions are about their seating arrangement with some restrictions.

3. Draw a venn diagram for 3 items : white, flowers, cloth

Ans : draw 3 circles each intersecting the other , with white kept in the middle.

4. A problem related to seating arrangement of 4 people ( 2 ladies and 2 gents) with some restrictions

5. problem related to milk with water added to it for three times
Ans: 20.5 litres

6. Problem related to diagrams . Five diagrams were given and asked to find the sixth one.

C-Skills:

1. Max number of nodes in a binary tree with height 3 is 20 : Ans: False

2. 10,20,30,40,50,60 : give the order when put in a queue and in a stack
Ans : Queue : 10,20,30,40,50,60 stack : 60,50,40,30,20,10

3. Debugging is the process of finding
Ans : logical and runtime errors

4. trace the error:
void main(){
int &a;
/* some other stuff here */
}
Ans: syntax error

5. a problem with a function named ‘myValue’ will be given and asked to find the value of main() for an argument of 150,
Ans : 150

6. Some problems related to ‘for’ loops.

7. problem on conditional inclusion.

8. problem related to depth first and breadth first search (DSA subject)

9. study the syntax of malloc function

10. locate the error
int arr (20);
Ans: syntax error.

INTERGRAPH

1.non verbal question: four figures are given, find 5th figure.
ans: 1st figure.

2.draw the venn diagram for flowers, clothes & white
ans:
————–
| |
———— ————-
| | | | | |
| | | | | |
|flower | | | |clothes |
———— ————-
| white |
————–

3.there are 6 boys–a,b,c,d,e,f and 5 girls – p,q,r,s,t. a team should be formed with 6 members–and some more conditions like c and d should sit together; p won’t sit with e. there are 4 q’s based on this ref: puzzle test of agarwal

4.a cube is painted with blue, yellow and black on opposite faces.it is cut into 36 cubes,of which 4 cubes are bigger than others.3 q’s on this. hint:first cut cube into 3 equal pieces(not cubes).cut first piece into 16 equal cubes(4x4).cut 3rd piece into 16 equal cubes(4x4).cut the 2nd piece (middle piece) into 4 equal cubes(bigger in size than previous 32 cubes).

5.a sales executive has to visit 6 companies–p,q,r,s,t,u.other conditions like –he should visit s before u ,he should not visit r immediately
after u etc..,
3 q’s on this
ref:puzzle test of agarwal

6.4 members–2 men ,2 women are palying cards.no woman should sit in front of another woman.no man should sit in front of another man. man1 sits on west side etc..,find the position of woman2.

7.a container contains 28 litres of pure milk. then 8 litres of milk is taken out and 8 litres of water is added.then another 8 litres of mixture . is taken out and another 8 litres of water is added. this process is repeated 3rd time also.find the milk-water ratio.

8.some boys are cows.some cows are dogs.etc..,which of the following are true:
4 statements are given.

9.one q on interferences.
section 2:(c-programming)

1.q on binary tree: does a binary tree of depth 3 have 20 nodes ans:no

2.write order of traversal of nodes for depth first and breadth first searches of a 15 node tree

3.debugging is done finding
a)logical errors b)run time errors c)both a and b d)none of the above ans:c

4.sum(x)=1+ 1+2+ 1+2+3+ …..x
write the condition’?’
{
for(i=0;i< ?;i++)
for(j=0;j sum+=z
}

5.show that a variable is the largest among the 3 variables using conditional operator
a=5,b=10,c=7
ans:(a>b)?((a>c)?a:c):b
b is the largest
there are 3,4 q’s on syntax/logical/runtime errors. and 2,3 q’s on for loops. there are 20 q’s in each section the cut off is 11 correct answers in each section

  • Resources