125
2*3(15+4)=114
114*1/2=57 rs
Servlets are faster as compared to JSP, as they have a short response time.
JSP is slower than Servlets – JSP is a HTML-based codes.
Servlets are harder to code, as here, the HTML codes are written in Java – JSPs are easier to code, as here Java is coded in HTML.
In an MVC architecture, Servlets act as the controllers. – In MVC architectures, the JSPs act as a view to present the output to the users.
The service() function can be overridden in Servlets. – The service() function cannot be overridden in JSPs.
31
999,919 = 991 × 1,009
Number of cats= 991
Number of mice killed by each cat=1,009
In 30 mins- Thief – 20km, Owner – 0km
In 1hr – Thief – 40km, Owner – 25km
In 1.5hrs – Thief – 60km, Owner – 50km
In 2hrs – Thief – 80km, Owner – 75km
In 2.5hrs – Thief – 100km, Owner – 100km
Answer: In 2.5 hours the owner would have overtaken the Theif
I solve it as the 280m train being stationary… and the 120m train moving at (42+30) = 72kph…. or 20mps
The front of the train will have to go 280m to pass the stationary train plus another 120m for the backs to clear… that is 400m in all.
The time to travel 400m at 20mps is 20secs
22
D = 180m
S = 42 – 6 = 36 * 5/18 = 10
T = D/S = 180/10
T = 18s
21
Circular Track sis of 11 km
Speed of Mens are
4 , 5.5 , 8 km/hr
Time at Which they are at starting Points again
11/4 , 11/5 , 11/8
11/4 , 2.2 , 11/8
We need to find LCM of these
to find at what time they Meet again at starting point
LCM 11 * 2 = 22
After 22 Hrs they will meet at starting point
1×2×…100=100!
Number of zeros in product of n numbers =[5n]+[52n]+[53n]+…
Number of zeros in product of 100 numbers =[5100]+[52100]+[53100]
where [.] is greatest integer function
=[20]+[4]+[0.8]=20+4=24
16, 32, 64, 81, 100, 144, 190
36
the answer is 45 km/h
Define x:
Let the total distance be x.
Find the time needed in terms of x for speed at 30 km/h:
Find the time needed in term of x for 40 km./h:
Find the difference in time:
Solve x:
Find the total time needed to for the whole journey:
Given that he was 40 mins late:
Find the minimum speed needed:
Answer: The minimum speed is 45 km/h
copy cat
24 peacocks and 36 rabbits