Sun Microsystem Previous Years Solved Sample Placement Papers
- Why are beans used in J2EE architecture instead of writing all the code in JSPs?
(a) Allows separation of roles between web developers and application developers (Ans)
(b) Allows integration with Content Management tools
- Why are DB connections not written directly in JSPs?
(a) Response is slow
(b) Not a standard J2EE architecture
(c) Load Balancing is not possible
(d) All the above
(e) Both (b) and (c) (Ans)
- How are multiple EJB instances managed?
(a) Connection Pooling
(b) Caching of EJB instances
(c) EJB Passivation
(d) All the above (Ans)
- EJB class should implement:
(a) javax.ejb.EntityBean
(b) javax.ejb.rmi
(c) javax.ejb.EJBHome
(d) javax.ejb.EJBObject
(Ans: A) - Generally Servlets are used for complete HTML generation. If you want to generate partial HTMLs that include some static text (not hardcoded in Servlets) and dynamic text, what method do you use?
(a) Serverside includes
(b) JSP code in HTML
(c) Not possible to generate incomplete HTMLs using Servlets
-
If '+' means 'x', '-' means '+' and 'x' means '-', then what will be the value of (122 x 32) + 20 - 13 ?
A) 1513
B) 2039
C) 1739
D) 1813 (Ans)
-
Harry and Sharry together take 8 days to dig a cubical well of depth, length and width 5 metres each. If Harry is twice as fast as Sharry, then how much time would Sharry alone take to dig up a cubical well of depth, length and width 10 metres each?
A) 216 days
B) 192 days
C) 144 days (Ans)
D) 208 days
-
A cylindrical water tank having a height of 6 metres has a capacity of 5,000 litres. Two pipes are filling this tank at the rate of 30 litres per second and 20 litres per second. There are two leaks in the tank. One is at a height of 3 metres and it drains water at the rate of 10 litres per second. The other is at a height of 4.5 metres and it drains water at the rate of 5 litres per second. How much time will it take to fill the empty tank?
A) 120.24 seconds
B) 108.62 seconds
C) 116.96 seconds
D) 112.48 seconds (Ans)
-
If '+' means '÷', '-' means '+', '÷' means 'x' and 'x' means '-', then what will be the value of ((1200 + 24 - 55) + 5) x 12 ?
A) 9
B) 7
C) 6 (Ans)
D) 8
-
12 men and 6 women can complete a work in 10 days. 3 men and 6 women can complete this work in 25 days. How many men are required to complete this work in 5 days?
A) 30
B) 20
C) 24
D) 36 (Ans)
-
In a basketball team with 12 players, the average height of the players is 170 cm. Out of these players, the average height of 7 players is 166 cm. What is the average height of the remaining 5 players?
A) 173.8 cm
B) 175.6 cm (Ans)
C) 174.4 cm
D) 175.2 cm
-
The price of a diamond is directly proportional to the square of its weight. A trader bought a piece of diamond weighing 10 grams for ₹ 2,00,000. He broke it into three pieces of weights 5 grams, 3 grams, and 2 grams, and sold them individually. What was the total loss incurred by the trader?
A) No loss
B) ₹ 1,24,000
C) ₹ 1,00,000 (Ans)
D) ₹ 76,000
-
Ravi was running a race and beats Raja by 10 seconds. Ravi in the same race beats Ramesh by 16 seconds.
If Ramesh finished the race in 196 seconds, Raja finished it in:
(a) 199
(b) 190
(c) 206
(d) 212 (Ans)
-
There are two empty tanks of equal volume. One tap is fitted to each tank. Both taps are opened simultaneously. One tap fills at 2/7th the rate of the other. If total volume of water filled after one hour is 360 litres, how much time does it take for the tank that is filled at a lower rate to be filled with 360 litres of water?
(a) 6 hours
(b) 9 hours
(c) 4.5 hours
(d) 7.5 hours (Ans)
-
A square is constructed with its side being equal to that of a rhombus of diagonals 20 cm and 48 cm. The square is then compressed along one diagonal such that there is no change in the length of the sides but the diagonal reduces to 13 cm. How many times the side of the square is the second diagonal of the rhombus formed?
(a) 8
(b) √15
(c) 4 (Ans)
(d) √15 / 2