1. Find the next no. in the series 1, 2 ,4 ,13 ,31 ,62 ,124 ,__
Sol: 253
Hint: This is series of 1,2,4,8,16,32,64,128 with the base 5.
2. Expand RISC
Sol: Reduced Instruction Set Computing.
3. At what time after 4.00p.m. is the minutes hand of a clock
exactly aligned with the hour hand?
Sol: 4:21:49.5
Hint: Assume that x minutes after 4.00pm minute hand exactly aligns with and hour hand.
For every minute, minute hand travels 6 degrees.
Hence, for x minutes it will travel 6*x degrees. For every minute, hour hand travels ½ degrees. Hence for x minutes it will travel x/2 degrees. At 4.00pm the angle between minute hand and hour hand is 120 degrees. Also, after x minutes, minute hand and hour hand are exactly aligned. So the angle with respect to 12 i.e. Vertical plane will be same. Therefore,
6*x=120+(x/2), 12*x=240+x,11*x=240,x=21.8182,x=21 minutes 49.5 minutes.
4. main ()
{
main ();
}
Sol: runtime error
Hint: stack overflow. main function calls itself again and again. Each time the function is called its return address is stored in the call stack. Since there is no condition to terminate the function call, the call stack overflows at runtime. So it terminates the program and results in an error.
5. A class of 100 students.24 of them are girls and 32 are not. Which base is used here?
Sol: 6
Hint: Let the base be x. Therefore (x*x + x*0+0)=(2*x+4)+(3*x+2)
x * x=5*x+6 x *x-5*x+6=0;
(x-6)(x+1)=0;
therefore base is 6.
No comments:
Post a Comment