Nov 1, 2010

What is the direction??

Y is in the East of X which is in the North of Z. If P is in the South of Z, then in which direction of Y, is P?

Answer:
P is in South-West of Y.

Explanation:
P is in South-West of Y.

Oct 31, 2010

Companies Info

CEO's
TCS -N Chandrasekaran
INFOSYS -s.Gopalakrishnan
CTS-Francisco D'Souza
WIPRO - Girish S. Paranjpe,Suresh Vaswa

Oct 30, 2010

Companies Info

CEO's
Yahoo-Terry Semel
Google-Eric Schmidt
Oracle-Larry Ellison
Microsoft-Steve Balmer
Face Book-Mark Zuckerberg

Oct 29, 2010

Find The Output

main()
{
i=5;
printf("%d",i++ + ++i);
printf("\n%d",i++);
printf("\n%d",++i);
}

Answer:
12
7
9

Oct 28, 2010

What is the time??

A watch was set accurately at 8.30am and then lost 2 seconds for every 5 minutes. What time was indicated on the watch at 6.30pm on the same day?

Answer:
6.26pm

Explanation:
As given the question, the watch will lost 2 seconds for every 5 minutes,
therefore, for 10min = 4 sec
                     20min = 8 sec
                     40min = 16 sec
                     60min (1 hour)= 24 sec
                     10 hours = 240 sec which is 4 min.
Therefore after 10 hours, 4 min delay will occur i.e at 6.30pm it will show 6.26pm.

Find the output.

main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf("%d",i);
}



Answer:
-1


Explanation:
Unary + is the only dummy operator in C. So it has no effect on the expression and now the while loop is, while(i--!=0) which is false and so breaks out of while loop. The value –1 is printed due to the post-decrement operator.

Oct 27, 2010

What is the relation?

P's father is Q's son. M is paternal uncle of P and N is the brother of Q. How is N related to M?


Answer:
N is paternal uncle of M.

Find out the missing no. in the series..

Find the next no. of the following series:
(i) 3,10,101,?
(ii) 1,2,4,9,28,?
(iii) 24,60,120,210,?


Answer: 
(i) 3,10,101,10202
(ii) 1,2,4,9,28,125
(iii) 24,60,120,210,336


Explanation: 
(i) 3, (3*3+1), (10*10+1), (101*101=1)..
(ii) (0!+0), (1!+1), (2!+2), (3!+3), (4!+4), (5!+5)..
(iii) (3^3-3), (4^3-4), (5^3-5), (6^3-6)..

Find the output.

Try this..
main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
What is the output of above program??

Answer:
hai

Explanation:
The first printf statement prints 'ab'
The second printf statement prints 'asi'(bcoz \b backspace cmd prints next to 'a' and overwrites 'b')
The third printf statement prints 'hai' (bcoz \r return cmd overwrites on 'asi')

How many times do they toll?

Three bells toll together at intervals of 4,6 and 8 seconds. In two minutes how many times do they toll together???

Answer:
5 times.
Explanation:
The LCM of 4,6 and 8 is 24
Given 2 minutes i.e 120 seconds
No. of times = 120(time in sec)/24(LCM) = 5 times