IBM Written test Questions with answers for learn and practice

SECTION#1

1. If a car starts from A towards B with some velocity. Due to some problem in the engine after traveling 30km, the car goes with 4/5 th of its actual velocity .The car reaches B 45 min later to the actual time. If the car engine fails after traveling 45km, the car reaches the destination B 36min late to the actual time What is the initial velocity of car and what is the distance between A and B in km

Ans. 20 & 130.

2. A person has Rs 100/- in his pocket, he can as 25 pencils or 15 books. He kept 15% of the money for traveling expenses and purchased 5 pencils. So how many books he can purchase with the remaining money.

3. The values of shares (in Rs).of A, B and C from January to June are as follows.

Month A B C

January 30 60 80

February 35 65 85

March 45 75 65

April 40 75 82

May 55 75 85

June 50 75 80

i) During this period which share has undergone maximium fluctuation?

ii) In which month it is possible to buy B and C selling A?

iii) In which month the share values are very low?

iv) By purchasing one share of A and 4 each of B and C in the beginning of the period,

when should these be sold to get maximum profit?

4. In a two-digit, if it is known that its unit's digit exceeds its ten's digit by 2 and that the product of the given number and the sum of its digits is equal to 144, then the number is:

Ans: 24

5. The value of [ (0.96)3 - (0.1)3 ] / [(0.96)2 + 0.096 + (0.1) 2]

ans: 0.86

6. The ratio of the number of boys and girls in a college is 7 : 8. If the percentage increase in the number of boys and girls be 20% and 10% respectively, what will be the new ratio?

Ans: 21:22

7. find the next no in the series 15, 31, 63, 127, 255, (....)

Ans: 511

8. A car owner buys petrol at Rs.7.50, Rs. 8 and Rs. 8.50 per liter for three successive years. What approximately is the average cost per litre of petrol if he spends Rs. 4000 each year?

Ans: 7.89

9. In Arun's opinion, his weight is greater than 65 kg but less than 72 kg. His brother doest not agree with Arun and he thinks that Arun's weight is greater than 60 kg but less than 70 kg. His mother's view is that his weight cannot be greater than 68 kg. If all are them are correct in their estimation, what is the average of different probable weights of Arun?

Ans:67kg

10. Two numbers A and B are such that the sum of 5% of A and 4% of B is two-third of the sum of 6% of A and 8% of B. Find the ratio of A : B.

Ans:4:3

11. The L.C.M. of two numbers is 48. The numbers are in the ratio 2 : 3. Then sum of the number is:

Ans:40

12. Let N be the greatest number that will divide 1305, 4665 and 6905, leaving the same remainder in each case. Then sum of the digits in N is:

Ans:4

13. Find the odd one 11, 48, 100, 384, 768, 3072

Ans:100

14. If a quarter kg of potato costs 60 paise, how many paise will 200 gm cost?

Ans:48 paise

15. 3 pumps, working 8 hours a day, can empty a tank in 2 days. How many hours a day must 4 pumps work to empty the tank in 1 day?

Ans: 12

16. 50 men took a dip in a water tank 40 m long and 20 m broad on a religious day. If the average displacement of water by a man is 4 m3, then the rise in the water level in the tank will be:

Ans:25

17. m and n are whole numbers such that mn = 121, the value of (m - 1)n + 1 is:

Ans:1000

18.a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c

Ans. 11/30

19. What does the hexa number E78 in radix

(a) 12455

(b) 14153

(c) 14256

(d) 13541

(e) 131112

Ans. (d)

20. Q is not equal to zero and k = (Q x n - s)/2 What is n?

(a) (2 x k + s)/Q

(b) (2 x s x k)/Q (c) (2 x k - s)/Q

(d) (2 x k + s x Q)/Q (e) (k + s)/Q

Questions 21 - 25 are to be answered on the following data

A causes B or C, but not both

F occurs only if B occurs D occurs if B or C occurs E occurs only if C occurs

J occurs only if E or F occurs

D causes G,H or both H occurs if E occurs G occurs if F occurs

21. If A occurs which of the following must occurs?

I. F and G

II. E and H

III.D

(a) I only

(b) II only

(c) III only

(d) I,II, & III

(e) I & II (or) II & III but not both

Ans. (e)

22. If B occurs which must occur?

(a) D

(b) D and G

(c) G and H

(d) F and G

(e) J

Ans. (a)

23.If J occurs which must have occurred

(a) E

(b) either B or C

(c) both E & F

(d) B

(e) both B & C

Ans. (b)

24. Which may occurs as a result of cause not mentioned

I.D

II. A

III. F

(a) I only

(b) II only

(c) I & II

(d) II & III

(e) I,II & III

Ans. (c)

25. E occurs which one cannot occurs

(a) A

(b) F

(c) D

(d) C

(e) J

Ans. (b)

26.A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water,approximately what percent of the resulting solution in the jug is salt?

(A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15%

27. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann.

28.Directions to solve

Read the paragraph carefully and answer the qustions:

Six knights - P, Q,R,S,T and U - assemble for a long journey in Two ravelling parties. For security, each travelling party Consists of at least two knights. The two parties travel by separate routes, northern and southern. After one month, the routes of the northern and southern groups converge for a brief time and at that point the knights can, if they wish, rearrange their

travelling parties before continuing, again in two parties along separate northern and southern routes. Throughout the entire trip, the composition of traveling parties must be in accord with the following conditions P and R are deadly enemies and, although they may meet briefly,can never travel together. p must travel in the same party with sQ can’t travel by the southern route U can’t change

a. If one of the two parties of knights consists of P and U and two other knights and travels by the southern route,the other members of this party besides P and U must be

a) Q and S

b) Q and T

c) R and S

d) R and T

e) S and T

Ans: e

b.If each of the two parties of knights consists of exactly three members, which of the following is not a possible travelling party and route?

a) P,S,U by the northern route

b) P,S,T by the northern route

c) P,S,T by the southern route

d) P,S,U by the southern route

e) Q,R,T by the southern route

Ans: b

c. If one of the two parties of knights consists of U and two other knights and travels by the northern route, the other memnbers of this party besides U must be

a) P and S

b) P and T

c) Q and R

d) Q and T

e) R and T

Ans: c

d. If each of the two parties of knights consists of exactly three members of different parties, and R travels by the northern route,then T must travel by the

a) southern route with P and S

b) southern route with Q and R

c) southern route with R and U

d) northern route with Q and R

e) northern route with R and U

Ans: a

e. If, when the two parties of knights encounter one another after a month, exactly one knight changes from one travelling party to the other travelling party, that knight must be

a) P

b) Q

c) R

d) S

e) T

Ans: e

Questions 29 - 32:

A, B, C, D, E and F are six positive integers such that

B + C + D + E = 4A

C + F = 3A

C + D + E = 2F

F = 2D

E + F = 2C + 1

If A is a prime number between 12 and 20, then

29. The value of F is

(A) 14

(B) 16

(C) 20

(D) 24

(E) 28

30. Which of the following must be true?

(A) D is the lowest integer and D = 14

(B) C is the greatest integer and C = 23

(C) B is the lowest integer and B = 12

(D) F is the greatest integer and F = 24

(E) A is the lowest integer and A = 13

1.What is the difference between C and Java?
1.JAVA is Object-Oriented while C is procedural.
2.Java is an Interpreted language while C is a compiled language.
3.C is a low-level language while JAVA is a high-level language.
4.C uses the top-down approach while JAVA uses the bottom-up approach.
5.Pointer go backstage in JAVA while C requires explicit handling of pointers.

view more difference

2.What is the difference between array and pointer?

Pointer is a variable in a program is something with a name, the value of which can vary. The way the compiler and linker handles this is that it assigns
a specific block of memory within the computer to hold the value of that variable.
An array is a conceptual data representation consisting of a list of more than one item of a particular scalar type (int, float, char, structure, etc.) where each element is accessed by its index.3.What is the difference between Strings and Arrays?
- String can hold only char data. Where as an array can hold any data type.
- An array size can not be changed. Where as a string size can be changed if it is a char pointer
- The last element of an array is an element of the specific type. The last character of a string is a null – ‘\0’ character.
- The length of an array is to specified in [] at the time of declaration (except char[]). The length of the string is the number of characters + one (null character).
3.What is Recursion Function?
a) A recursive function is a function which calls itself.
b) The speed of a recursive program is slower because of stack overheads. (This attribute is evident if you run above C program.)
c) A recursive function must have recursive conditions, terminating conditions, and recursive expressions.
5.Diffrence between default and copy constructor?
4.What are abstract class?
An abstract class is a class which does not fully represent an object. Instead, it represents a broad range of different classes of objects. However, this representation extends only to the features that those classes of objects have in common. Thus, an abstract class provides only a partial description of its objects
5.Define Deadlock?
In an operating system, a deadlock is a situation which occurs when a process enters a waiting state because a resource requested by it is being held by another waiting process, which in turn is waiting for another resource. If a process is unable to change its state indefinitely because the resources requested by it are being used by other waiting process, then the system is said to be in a deadlock.
6.What is linked list?
Linked list is one of the fundamental data structures, and can be used to implement other data structures. In a linked list there are different numbers of nodes. Each node is consists of two fields. The first field holds the value or data and the second field holds the reference to the next node or null if the linked list is empty.
7.What is the difference bet do loop & do while loop?
The difference between a "do ...while" loop and a "while {} " loop is that the while loop tests its condition before execution of the contents of the loop begins; the "do" loop tests its condition after it's been executed at least once. As noted above, if the test condition is false as the while loop is entered the block of code is never executed. Since the condition is tested at the bottom of a do loop, its block of code is always executed at least once.10.What is polymorphism & inheritance property?
Polymorphism is the ability to use an operator or function in different ways. Polymorphism gives different meanings or functions to the operators or functions. Poly, referring to many, signifies the many uses of these operators and functions. A single function usage or an operator functioning in many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that behave differently in different contexts.

8.What is OOPS concept?

Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance. Many modern programming languages now support OOP, at least as an option.
9.What are dynamic and static memory location?

The allocation of memory for the specific fixed purposes of a program in a predetermined fashion controlled by the compiler is said to be static memory allocation.
The allocation of memory (and possibly its later deallocation) during the running of a program and under the control of the program is said to be dynamic memory allocation.

10.Write a program in C to sort a list of numbers in ascending order?

11.Write a program in java to print the odd no. between 1 to 100?

12.What is the differentiate b/w analog and digital communication?

13.What is the difference between Truncate and Delete?

14.What is the difference between DBMS and RDBMS?

15.What are the advantages of SQL?

These are the advantages of PL/SQL.
Block Structures: PL SQL consists of blocks of code, which can be nested within each other. Each block forms a unit of a task or a logical module. PL/SQL Blocks can be stored in the database and reused.
Procedural Language Capability: PL SQL consists of procedural language constructs such as conditional statements (if else statements) and loops like (FOR loops).
Better Performance: PL SQL engine processes multiple SQL statements simultaneously as a single block, thereby reducing network traffic.
Error Handling: PL/SQL handles errors or exceptions effectively during the execution of a PL/SQL program. Once an exception is caught, specific actions can be taken depending upon the type of the exception or it can be displayed to the user with a message.
Hide data complexity
16.What is the difference between Dbms and OODbms?

17.Difference between SQL and PL /SQL?

18.Difference between DBMS and File System

19.What is the basic difference between a Join and a Union?

Union:
It combines the results of two or more queries into a single result set consisting of all the rows belonging to all queries in the union.
Basic Rules:
The number and the order of the columns must be the same in all queries.
The data types must be compatible.
Join:
To retrieve data from two tables or more than two tables then use joins.
Types: Inner Join, Outer Join(Right outer join, left outer join), cross join, Equi join, Self join.
The number and the order of the columns need not be the same in all queries.
20.what is a root?
"root" refers to the top-level directory of a file system. The word is derived from a tree root, since it represents the starting point of a hierarchical tree structure. The folders within the tree represent the branches, while the actual files are considered the leaves. However, unlike a real life tree, a data tree can be visualized upside down, with the root at the top and directories and subdirectories spanning downward.
The root node of a file system is also called the root directory. On a Windows-based PC, "C:\" represents the root directory of the C drive.
If you ever use a terminal program to view files and folders on a computer, you can use the command "cd /" (change directory to root) to navigate to the root directory.
"Root" is also the name of the user who has administrative privleges on a Unix or Linux server.

IBM Exercise questions

Directions : In each of the following questions, a number series is given with one term missing. Choose the correct alternative that will continue the same pattern and fill in the blank spaces.

1. 1, 4, 9, 16, 25, (...)

(a) 35

(b) 36 (Ans)

(c) 48

(d) 49

Ans : The numbers are 12, 22, 32, 42, 52.

∴ Missing number = 62 = 36.

2. 20, 19, 17, (...), 10, 5,

(a) 12

(b) 13

(c) 14 (Ans)

(d) 15

Ans :The Pattern is -1, -2, ...

∴ Missing number = 17 - 3 = 14.

3. 2, 3, 5, 7, 11, (...), 17

(a) 12

(b) 13 (Ans)

(c) 14

(d) 15

Ans : Clearly, the given series consists of prime numbers starting from 2. The prime number after 11 is 13. So, 13 is the missing number.

4. 6, 11, 21, 36, 56, (...)

(a) 42

(b) 51

(c) 81 (Ans)

(d) 91

Ans : The pattern is + 5, + 10, + 15, + 20, .....

∴ Missing number = 56 + 25 = 81.

5. 1, 6, 13, 22, 33, (...)

(a) 44

(b) 45

(c) 46 (Ans)

(d) 47

Ans : The pattern is + 5, + 7, + 9, + 11, ....

∴ Missing number = 33 + 13 = 46.

6. 3, 9, 27, 81, (...)

(a) 324

(b) 243 (Ans)

(c) 210

(d) 162

Ans : Each term of the given series is obtained by multiplying its preceding term by 3.

∴ Missing number = 81 x 3 = 243.

7. 1, 9, 17, 33, 49, 73, (...)

(a) 97 (Ans)

(b) 98

(c) 99

(d) 100

Ans : The pattern is + 8, + 8, + 16, + 16, + 24, ...

∴ Missing number = 73 + 24 = 97.

8. 2, 5, 9, (...), 20, 27,

(a) 14 (Ans)

(b) 16

(c) 18

(d) 24

Ans : The pattern is + 3, + 4, ...

∴ Missing number = 9 + 5 = 14.

9. 5, 9, 17, 29, 45, (...)

(a) 60

(b) 65 (Ans)

(c) 68

(d) 70

Ans : The pattern is + 4, + 8, + 12, + 16, ...

∴ Missing number = 45 + 20 = 65.

10. 3, 7, 15, 31, 63, (...)

(a) 92

(b) 115

(c) 127 (Ans)

(d) 131

Ans : Each number in the series is the preceding number multiplied by 2 and then increased by 1.

Thus, (3 x 2) + 1 = 7, (7 x 2) + 1 = 15, (15 x 2) 1 = 31 and so on.

∴ Missing number = (63 x 2) + 1 = 127.

11. 1, 6, 15, (...), 45, 66, 91

(a) 25

(b) 26

(c) 27

(d) 28 (Ans)

Ans : The pattern is + 5, + 9, ..., + 21, + 25, ...

∴ Missing number = 15 + 13 = 28.

12. 1, 2, 3, 5, 8, (...)

(a) 45.5

(b) 39.5

(c) 30.5 (Ans)

(d) 40.5

Ans : Each terms in the series is the sum of the preceding two terms.

Thus, 1 + 2 = 3; 2 + 3 = 5; 3 + 5 = 8 and so on.

∴ Missing number = 5 + 8 = 13.

13. 0.5, 1.5, 4.5, 13.5, (...)

(a) 45.5

(b) 39.5

(c) 30.5

(d) 40.5 (Ans)

Ans : Each terms of the series is obtained by multiplying the preceding term by 3.

∴ Missing number = 13.5 x 3 = 40.5.

14. 121, 225, 361, (...)

(a) 441

(b) 484

(c) 529 (Ans)

(d) 729

Ans : The numbers are 112, 152, 192, ... i.e. 112, (11 + 4 x 1)2, (11 + 4 x 2)2, ...

∴ Missing number = (11 + 4 x 3)2 = (23)2 = 529.

15. 0, 2, 8, 14, (...), 34

(a) 24 (Ans)

(b) 22

(c) 20

(d) 18

Ans : The numbers are 12 - 1, 22 - 2, 32 - 1, 42 - 2, ...

∴ Missing number = 52 - 1 = 24.

16. 19, 2, 38, 3, 114, 4, (...)

(a) 228

(b) 256

(c) 352

(d) 456 (Ans)

Ans :The sequence is a combination of two series :

I. 19, 38, 114, (.....) and II. 2, 3, 4

The pattern followed in I is x 2, x 3, .....

∴ Missing number = 114 x 4 = 456.

17. 1, 2, 3, 6, 9, 18, (...), 54

(a) 18

(b) 27 (Ans)

(c) 36

(d) 81

Ans : The numbers are alternately multiplied by 2 and 3/2.

Thus, 1 x 2 = 2, 2 x 3/2 = 3, 3 x 2 = 6, 6 x 3/2 = 9 and so on.

∴ Missing number = 18 x 3/2 = 27.

18. 4, 5, 9, 18, 34, (...)

(a) 43

(b) 49

(c) 50

(d) 59 (Ans)

Ans : The pattern is + 1, + 4, + 9, + 16, .... i.e. + 12, + 22, + 32, + 42,....

∴ Missing number = 34 + 52 = 34 + 25 = 59.

19. 3, 6, 18, 72, (...)

(a) 144

(b) 216

(c) 288

(d) 360 (Ans)

Ans : The pattern is x 2, x 3, x 4, .....

∴ Missing number = 72 x 5 = 360.

20. 66, 36, 18, (...)

(a) 3

(b) 6

(c) 8 (Ans)

(d) 9

Ans : Each number in the series is the product of the digits of the preceding number.

Thus, 6 x 6 = 36, 3 x 6 = 18 and so on.

∴ Missing number = 1 x 8 = 8.

21. 21, 25, 33, 49, 81, (...)

(a) 145 (Ans)

(b) 129

(c) 113

(d) 97

Ans : The pattern is + 4, + 8, + 16, + 32, .... i.e. + 22, + 23, + 24 + 25, ....

∴ Missing number = 81 + 26 = 81 + 64 = 145.

22. 12, 32, 72, 152, (...)

(a) 312 (Ans)

(b) 325

(c) 515

(d) 613

Ans : The pattern is + 20, + 40, + 80, ....

∴ Missing number = 152 + 160 = 312.

23. 3, 6, 5, 20, 7, 42, 9, (...)

(a) 54

(b) 60

(c) 66

(d) 72 (Ans)

Ans : The sequence is a combination of two series :

I. 3, 5, 7, 9 and II. 6, 20, 42, (...)

The pattern followed in II is + 14, + 22, ....

∴ Missing number = 42 + 30 = 72.

24. 1, 3, 4, 8, 15, 27, (...)

(a) 37

(b) 44

(c) 50 (Ans)

(d) 55

Ans : The sum of any three consecutive terms of the series gives the next term.

Thus, 1 + 3 + 4 = 8; 3 + 4 + 8 = 15; 4 + 8 + 15 = 27 and so on.

∴ Missing number = 8 + 15 + 27 = 50.

25.2, 15, 41, 80, (...)

(a) 111

(b) 120

(c) 121

(d) 132 (Ans)

Ans : The pattern is + 13, + 26, + 39, ....

∴ Missing number = 80 + 52 = 132.

26. 8, 10, 14, 18, (...), 34, 50, 66

(a) 24

(b) 25

(c) 26 (Ans)

(d) 27

Ans : The pattern is + 2, + 4, + 4, .... + 16, + 16.

∴ Missing number = 18 + 8 = 26.

27. 1, 2, 6, 24,(...)

(a) 60

(b) 95

(c) 120 (Ans)

(d) 150

Ans : The pattern is x 2, x 3, x 4, .....

∴ Missing number = 24 x 5 = 120.

28. 2, 3, 8, 63, (...)

(a) 1038

(b) 1998

(c) 3008

(d) 3968 (Ans)

Ans : Each term in the series is one less than the square of the preceding term.

Thus, 22 - 1 = 3, 32 - 1 = 8, 82 - 1 = 63.

∴ Missing term = (63)2 - 1 = 3969 - 1 = 3968.

29. 95, 115.5, 138, (...), 189

(a) 154.5

(b) 162.5 (Ans)

(c) 164.5

(d) 166.5

Ans : The pattern is + 20.5, + 22.5, ...

∴ Missing term = 138 + 24.5 = 162.5

30. 4, 10, (...), 82, 244, 730

(a) 24

(b) 28 (Ans)

(c) 77

(d) 218

Ans : Each number in the series is the preceding number multiplied by 3 and then decreased by 2.

31. 4, 32, 128, (...)

(a) 128

(b) 144

(c) 192

(d) 256 (Ans)

Ans :The pattern is x 8, x 4, ....

∴ Missing term = 128 x 2 = 256.

32. 2, 5, 9, 19, 37, (...)

(a) 76

(b) 75 (Ans)

(c) 74

(d) 72

Ans :The pattern is x 2 + 1, x 2 - 1, x 2 + 1, x 2 - 1, ....

∴ Missing number = 37 x 2 + 1 = 75.

33. 24, 60, 120, 210, (...)

(a) 300

(b) 336 (Ans)

(c) 420

(d) 525

Ans :The pattern is + 36, + 60, + 90,.... i.e.

+ [6 x (6 + 0)], + [6 x (6 + 4)], + [6 x (6 + 9)], ....

∴ Missing number = 210 + [6 x (6 + 15)] = 210 + 126 = 336.

34. 165, 195, 255, 285, 345, (...)

(a) 375

(b) 420

(c) 436 (Ans)

(d) 390

Ans : Each number is 15 multiplied by a prime number 15 x 11, 15 x 17, 15 x 19, 15x 23.

∴ Missing term = 15 x 29 = 435.

35. 5, 17, 37, 65, (...), 145

(a) 95

(b) 97

(c) 99

(d) 101 (Ans)

Ans :The numbers are 22 + 1, 42 + 1, 62 + 1, 82 + 1, ..., 122 + 1.

∴ Missing term = 102 + 1 =101.

36. 9, 11, 20, 31, (...), 82

(a) 41

(b) 51 (Ans)

(c) 60

(d) 71

Ans :Each term in the series is the sum of the preceding two terms.

∴ Missing number= 20 + 31 = 51.

37. 5, 16, 49, 104, (...)

(a) 115

(b) 148