IBM Placement Question Papers




IBM

Filed under:

IBM Placement Question Papers

1.int i=10;
printf("%d%d%d",i,i++,++i);
ans: compiler dependent

2. printf("Enter two values a and b:"):
scanf("%d%d",a,b);
printf("%d+%d=%d",a,b,a+b);
ans:core dumped

3. uestion on WM_SIZE
ans:WM_SIZE

4. when destroy window what message would disply
ans:WM_DESTROY

5. S Windows 3.1 about multitasking
ans:nonpreemptive

6. windows 3.1 is
ans:application

7. about switch switch statement
ans:16,21

8. question paper the first question ans is
ans:can’t be compiled

9. about send messages and post messages
ans: c

10. what is the command to intiate the windows
ans:WinMain

11. const char *
char * const
What is the differnce between the above tow?.

12. In Unix inter process communication take place using?.

13. What are the files in /etc directory?.

14. About i-node numbers

15. Max relaxable permisssion value with out giving write permission to others?

16. About ln(linking)

17. A question on until
until (who |grep mary)
do
sleep(60)
done

18. Linking across directories?.

19. process id for kernell process

20. very first process created by kernell

21. function to repaint a window immediately?.

22. Function entry for DLL in win3.1

23. win 3.1 supports which type of multi tasking?.

24. Message displayed when a window is destroyed

25. About fork()?

26. About send message and post message

27. Message to limit the size of window

28. System call executable binary file intoa process

29. About GDI object?.

30. API used to hide window

31. Initialize contents of a dialog?.

IBM

Filed under:

IBM Placement Question Papers

Technical

1. what does vector processing do?

2. What is the use of software configuration management?

3. what command is used to append two files using who that is listed by ls

4. If there is a problem in a network during transmission which is used to detect that?
a. protocol anaylzer, b. SNMP….

5. In C, x-=y+1 how will u represent it..
a. x=x+y+1, b.-x-y-1, c.-x+y+1…

6. What does Trigger do?

7. In which topology we use less amount of cables.
ring, bus, star, mesh….

8. Which sorting techniques is best for already sorted array…?.
ans: bubble sort

9. Which is said to be a realtime system.?
1. credit card systen
2 online flight reservation system
3 bridge control systen…not sure

10. decimal to octal conversion problem? ans A

11. A person having a/c number, a/c name,bank name, a/c type.. which is the primary among the above?

12. why data integrity is used?

13. If a primary key is an attribute of another one table means……..
1 candidate key
2 foreign kryey
3 seconda

14. int (*a)[4]. Explain this expression

15. Difference between 0123 and 123 in c
ans : 40

16. In c r+ is used for
1 read only
2 writing only
3 both 1 and 2

17. parity bit for what?

18. YWCC is what in options they had specified for compiler..

Aptitude

1. which 3 consequtive prime numbers gives the total
ans: 49 (13,17,19)

2. Rational numbers between 1 and 5
1. 3
2. 2
3. 0

3. If boat travels in 10km/hr in still water. it travels 14kmhr in upstream and 26km/hr downstream what is speed of stream?

4. A cube of 3 unit has 6 surface is painted.If u cut the cube of 1 unit each how many cubes remain unpainted on all sides.
ans.1

5. A person sold an article at Rs.141 at 6% loss,to gain a profit of 10% at what price the article should be sold.
165

6. If person 20 min at 12 kmph. then how many Kmph in 15 minutes
Ans.16

7. Three person shared bullets equally. 4 were shot total no of bullets remainin is equal to the no of bullets initially divided
ans : 18

8. 1st day of the year 1999 is sunday and what will be last day of the same year
ans sunday

9. 4 thieves entere a bakery and stoled bread one after the other.Each one took half of the total number of breads+half a loaf.If 3 breads were remaining what is the total number of breads.

10. If a ball is dropped from 8ft and it bounces half the height each time. Then the total distance travelled
ans.24

11. 6 squares of equal size are placed side by side to form a rectangle whose perimeter is 182. find the perimeter of the single square.
ans 52

12. the average age of students in a class is 16.when a teacher of age 40 is added , the average becoems 17. what is the total number of students
ans.23

13. In 1930 a man’s age is the last 2 digit of the year intercganged in which he born and his granpa’s age also like the same.

14. 10pow10pow10 if one takes 1 sec to write a single digit then how long will it take to write the above _expression.

15. 2 trains coming in opposite directions in 12 km/hr distance between the trains is 24 km. an insect starts at the same time when the train starts at a speed of 18km/hr. How many km the insect might have travelled before it got crashed between the 2 trains.

16. Less than 30 of them are there. Among those 1/3rd know french 1/4th knows english, 1/2 knows german, then 1/8 of them donn’t know any of the languages. Then find out how many are there totally.

17. what is the probability that 2 of them selected randomly have got the same month of birth?

IBM

Filed under:

IBM Placement Question Papers

1. 10^10^10 how much time will it take to write this number,if it takes 1 sec to write 1 digit.
a. 1000 secs.
b. 10 year.
c. more than 1 million years.
d. a few days.
ans. more than 1 million years.

2. starting from 2 upto how many numbers we need to check whether 907 is prime or not?

3. A persons age is similar to the year he was born(last two digits is counted as age).ans. 80

4. What is YACC? ans. yet another compiler compiler.

5. flop is a unit of ? ans. processing speed.

6. #define hello(x,y) printf(#expr"%d",expr);
main(){
float x=1,y=2;
expr=x/y;
hello(expr);
}
ans. x/y=1;

7. time and work and days.(easy questions).

8. A&B fill 3 litres and 5 litres of oil in the car. C pays Rs. 8/- to A7B. How much will A get?

9. A question on “set” theory.it was given that less than 30 persons in class.(Ans . cannot be determined.)

10. 4 cows are there at the four corners of a square. if the radius of the rope is 1 and lenth of one side of the square is 14, find the area along the square which the cow cannot gaze.
ans. 14*14-pi*r*r;

11. Two glasses were filled with 1/3 and 1/4 milk. they were filled with water &then mixed in tumbler. what is the percentage of milk in the resultant.

12. average speed 2xy/x+y.

13. A belongs to the truther tribe ” who says yes". B belongs to the liers tribe ” who says no always".when A&B were asked to which group do they belonged to both of them replied “yes".when a third person C was asked whether A&B belong to same group,he notified groups he answered “No".to which group do A,B and C belong? ans.LLL or LTT.

14. There were three clocks they gave alarm after 24secs, 12secs and 36 secs.if they rang simulatneously at 8:20, then at what time they again rang simultaneously?(something like this but numbers may differ). ans. 8:27:12

15. A plane starts from a place A , it goes 1000 kms south then 1000km east then 1000 km north and 1000km west, what is it distance from the starting place? ans.same starting place.

16. question on Bipartite graph(definition).

17. heap-sorting algorithm time complexity.(ans nlogn)

18. white-box testing.

19. postfix evaluation of: (A+B)*C(Ans: AB+C*)

20. question on catch-throw? c++

21. main(){
main();
}
ans.stack overflow.

24.main()
{ char a,b;
printf("%d%d%d%d",sizeof(’a');
sizeof(NULL),sizeof(b),sizeof(main));
}
Ans(1,1,1,2)

22. Five file sizes given . what should be the order of their access so that least time is taken.
ans.least size first.

23. SQL query does what?

24. 5 questions on reasoning.

IBM

Filed under:

IBM Placement Question Papers

Technical

1. FLOP is the unit of – I)clock speed, ii)frequency….i ii)memory, iv)processors speed.

2. main()
{
printf("hello");
main();
}
how many times it will print?

3. complexity of heap sort(ans:o(nlogn).

4. what will be the o/p?
int main()
{
char a,b;
printf(“%d%d%d%d”,sizeof(‘A’), sizeof(‘NULL’), sizeof(‘a’), sizeof(main));
}

5. necessity of pairty bit(ans:b).

6. >what is the o/p?
#DEFINE xyz(exr)printf(“exr=%d”,exr)
main()
{
int x=3;y=2;
xyz(x/y);
}

7. simple question on graph

8. simple question on sql

9. files r there of size like 26543b,2000b,4000b,1000b arrange them according to there access time
Aptitude(TOTAL25)

10. unit digit of 7^173?

11. two train coming towards from dist 24 miles with speed 12 miles/hr ,a fly randomly flying beetween two trains at the speed of 18 miles/hr.how many distance covered by the fly before will collide?(30,36……)

12. what is the increase of volume of a sphere if its radius increases by 10%?

13. A man climbing in a rock at 24 km/hr and downhill 36 km/hr. determine avg speed?

14. problem on language (some percent known german,some knows French,some English)ans:24.

15. Here two same size glass one is filled 1/3 of milk and other is 1/4 milk.then the glasses filled with water and mixed,what is the percentage of milk now?

16. One is filled 1/3 of milk and other is 1/4 milk.then the glasses filled with water and mixed,what is the percentage of milk now?

17. If the time required for write one digit is one second then how many time for (10^10)^10?(ans:I) few day ii) millions of day iii) one year

18. In 1930 the age of one student is same as the last two digit of his year of birth and the case is same for his grand father also ,what is the sum of age his and his grand father?(ans:80check).

19. In 1930 the age of one student is same as the last two digit of his year of birth and the case is same for his grand father also ,what is the sum of age his and his grand father?(ans:80check).

20. blue socks:4pair,red socks:3pair,white socks:2pair,how many socks one will take for two different socks .

21. what is the probability of 2 man will be born in a same month(ans:1/12,1/6,1/24,1/2)

22. There is a square ground of side 14cm,two horses r there in two different point of the square such that they can just touch them, how much grass will not be covered by the horses.(ans:14*14-2*(1/4)*pi*(7*root2)^2).

23. A man is started his journey from point A he goes 1000km south then 1000km east ,1000km north,then 1000km west.where is he now.(ans:I)at point A ii)1000km east from Aiii)….iv)….

IBM Placement Question Papers

Filed under:

IBM Placement Question Papers

APTITUDE

1. 2 pipes A and B can fill a tank in 30minutes and 20 minutes respectively. B filled ¾ of the tank. Then for the rest both A and B filled the tank. How much time it took to fill the entire tank.

2. 5 monkeys eat 5 bananas in 5 minutes. Then how many monkeys can eat 20 bananas in 20 minutes.

3. A does a work in 20 days. A did for 28 days. Then b came. They together take 76 days to complete the 7 job. Find howmany days B complete a work.

4. My house number is
if not multiple by 3 it is with in 50-59
if not multiple by 5 it is with in 60-69
if not multiple by 10 it is with in 70-79
find house number.

5. After 6 years the ratio of age of X and Y will be 5:6. Before 6 years it was 3:4. Find the age of younger one.

6. The arithmetic mean of two numbers is 10 and the geometrid mean is 8. Find the two numbers.

7. 3 consecutive non zero number which of these will result a positive odd integer.
1. x+y+z
2. xy-z
3. x-y-z

8. 420 km distance. It goes at a speed of 10km/hr less than it took 1.4 hour. Find the initial speed.

9. Tem, Harry and Dick are three friends. From these two are musicians.
Tem—-Harry
Shorter one is older musician.
Harry—-Dick
Shorter one is younger musician.
Dick—–Tem
Taller is the younger musician.
Find the two musician.

10. A’s mother is only daughter of B’s mother. B is A’s what.

11. In a 20 liter mixture of milk and water, the ratio of milk and water is 3:1. How much milk is to be mixed with the mixture so as to make the ratio 4:1.

12. For a party 240 guests were invited. Contractor have gained 12.5% profit. But 30 guests were absent. He charged the same amount for a meal and lost 100 rupees. How much a meal costs.

13. Out of three A,B,C one is thief. All give two statements. One is false another is true. Find the thief.
A-i did not do, B did not do.
B-i did not do, C did not do.
C-i did not do, I donot know who did it.

14. The sides of an isocles tringale are given. The perpendicular distance is given. Find the base of the tringale.(Numerical values are given, but I donot remember)

15. In a tringale length of 3 sides are given. It is given to find the highest length of scale which can be used to measure all the sides.(To find gcf).

16. There is a metallic cylinder of radius r and height h is melted. If the radius of smaller cylinder is r/10 and height is h/10, then howmany small cylinders are made from the molten.

TECHNICAL

17. What is weak typing.

18. What is pure virtual function.

19. Which is not a member of unix shell. (rbash,cbash,nbash,kbash,gbash)

20. Which is an error.
Int *p[3]
Int (*p)[3]
(Int *)(int ,int)
Int (*p[3])
Int *(p[3])

21. Which is not a processor.
(intel,duran,Celeron,athelon)

22. a[5]=={1,2,3,4,5}
printf("%d",a[3]);
printf("%d",3[a]);
printf("%d",*(a+3);

23. what is the output.
if(r= =5!= =4)
printf("inside");
else
printf("outside");
printf("%d",r);

24. for(i=0,j=0;i<10,j<10;i++,j+);
printf("%d",j); (compilation error,run time error,0)

25. Which is not an inter process communication.
(tee,shared memory,pipe,queue,file)

26. for loop on string.

27. Which is not a database.
(oracle,smalltalk,db2,Sybase)

28. #define prod((a>b)?a*a:b*b)
int p==0,q==-1;
prod(p++,q++)
what is result.

29. what is reference.
Some loop statements on “c” are given which are very easy.

  • Resources