Mphasis Written Exam Questions

Mphasis Written Exam Questions


1. How is linked list implemented
Ans. By referential structures
2. What is meant by functional dependency

3. What is a semaphore
Ans. A method synchronization of multiple processes
4. What is the precedence order from high to low ,of the symbols ( ) ++ /
Ans.( ) , ++, /
5. Preorder of A*(B+C)/D-G
Ans.*+ABC/-DG
6. B-tree (failure nodes at same level)
7. Dense index (index record appears for every search -key in file)
8. What is the efficiency of merge sort
Ans. O(n log n)
9. program on swapping ( 10,5 )was given (candidate cannot recollect)
10. Which of the following sorting algorithem has average sorting behavior -- Bubble sort, merge sort,
heap sort, exchange sort
Ans. Heap sort
11. In binary search tree which traversal is used for getting ascending order values--Inorder ,post
order,preorder
Ans. Inorder
12. What are device drivers used for
Ans. To provide software for enabling the hardware
13. Irrevalent to unix command ( getty)
14. What is fork command in unix
Ans. System call used to create process
15. What is make command in Unix
Ans. Used for creation of more than one file
16. In unix .profile contains
Ans. Start up program
17. In unix echo is used for ( answer C)
18. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to
contribute towards the purchase of the gift/
A. D/(M-3)
B. MD/3
C. M/(D-3)
D. 3D/(M2-3M)
Ans. D
19. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would
take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work
for a period of 6 days. How many days will it take Mr.Blue to complete the contract?
A. 7
B. 8
C. 11
D. 12
Ans.C
20. 2 hours after a freight train leaves Delhi a passenger train leaves the same station traveling in the same
direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the freight
train. The average speed of the freight train was?
A. 30
B. 40
C.58
D. 60
Ans. B
21. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?
A.-5
B. 4
C. 2
D. 8
Ans. D
22. The office staff of XYZ corporation presently consists of three bookkeepers--A, B, C and 5 secretaries
D, E, F, G, H. The management is planning to open a new office in another city using 2 bookkeepers and
3 secretaries of the present staff . To do so they plan to separate certain individuals who don't function
well together. The following guidelines were established to set up the new office
I. Bookkeepers A and C are constantly finding fault with one another and should not be sent together to
the new office as a team
II. C and E function well alone but not as a team , they should be seperated
III. D and G have not been on speaking terms and shouldn't go together
IV Since D and F have been competing for promotion they shouldn't be a team
23. If A is to be moved as one of the bookeepers,which of the following cannot be a possible working
unit.
A.ABDEH
B.ABDGH
C.ABEFH
D.ABEGH
Ans.B
24. If C and F are moved to the new office, how many combinations are possible
A.1
B.2
C.3
D.4
Ans.A
25. If C is sent to the new office,which member of the staff cannot go with C
A.B
B.D
C.F
D.G
Ans.B
26. Under the guidelines developed, which of the following must go to the new office
A.B
B.D
C.E
D.G
Ans.A
27. If D goes to the new office, which of the following is/are true
I.C cannot go
II.A cannot go
III.H must also go
A.I only
B.II only
C.I and II only
D.I and III only
Ans.D

MphasiS Placement Apptitude Questions


1.In a class composed of x girls and y boys what part of the class is composed of girls
A.y/(x + y)
B.x/xy
C.x/(x + y)
D.y/xy
Ans. C
2.What is the maximum number of half-pint bottles of cream that can be filled with a 4-gallon can of
cream(2 pt.=1 qt. and 4 qt.=1 gal)
A.16
B.24
C.30
D.64
Ans. D
3.If the operation,^ is defined by the equation x ^ y = 2x + y,what is the value of a in 2 ^ a = a ^ 3
A.0
B.1
C.-1
D.4
Ans. B
4.A coffee shop blends 2 kinds of coffee, putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a
gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade, how much
will the shop save in blending 100 gms.
A.Rs.90
B.Rs.1.00
C.Rs.3.00
D.Rs.8.00
Ans.C
5.There are 200 questions on a 3 hr examination. Among these questions are 50 mathematics problems.
It is suggested that twice as much time be spent on each Maths problem as for each other question. How
many minutes should be spent on mathematics problems
A.36
B.72
C.60
D.100
Ans.B
6.In a group of 15,7 have studied Latin, 8 have studied Greek, and 3 have not studied either. How many
of these studied both Latin and Greek
A.0
B.3
C.4
D.5
Ans.B
7.If 13 = 13w/(1-w) ,then (2w)2 =
A.1/4
B.1/2
C.1
D.2
Ans.C
8. If a and b are positive integers and (a-b)/3.5 = 4/7, then
(A) b < a
(B) b > a
(C) b = a
(D) b >= a
Ans. A
9. In June a baseball team that played 60 games had won 30% of its game played. After a phenomenal
winning streak this team raised its average to 50% .How many games must the team have won in a row to
attain this average?
A. 12
B. 20
C. 24
D. 30
Ans. C
10. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to
contribute towards the purchase of the gift/
A. D/(M-3)
B. MD/3
C. M/(D-3)
D. 3D/(M2-3M)
Ans. D
11. A company contracts to paint 3 houses. Mr. Brown can paint a house in 6 days while Mr. Black
would take 8 days and Mr. Blue 12 days. After 8 days Mr. Brown goes on vacation and Mr. Black begins
to work for a period of 6 days. How many days will it take Mr. Blue to complete the contract?
A. 7
B. 8
C. 11
D. 12
Ans. C
12. 2 hours after a freight train leaves Delhi a passenger train leaves the same station traveling in the
same direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the
freight train. The average speed of the freight train was?
A. 30
B. 40
C.58
D. 60
Ans. B
13. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?
A.-5
B. 4
C. 2
D. 8
Ans. D