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

Oct 26, 2010

Find the output.

main()
{
int i=-1;
+i;
printf("i = %d, +i = %d \n",i,+i);
}
what's the output??


Answer: 
i = -1, +i = -1

Explanation: 
   Unary + is the only dummy operator in C. Where-ever it comes you can
just ignore it just because it has no effect in the expressions (hence the
name dummy operator).

Oct 25, 2010

What is the relation?

A father is 4 times his son's age. And in 30 years son's age will be half of his father's age. How old are the father and son now???

Answer: 
Son's age : 15
Father's age : 60


Explanation:
The ratio of the father and son's age is now 4 to 1 and 30 years from now it will be 2 to 1. The period of thirty years equals the difference of the two ratios or 2 to 1. Therefore, 30*2 = 60, the father's age and (1/2) * 30 = 15, the son's age.

Find out no. of days.

A is thrice as good as workman as B and therefore is able to finish a job in 60 days less than B. Working together, they can do it in??

Answer:
45(or)221days.
22




Explanation:
Ratio of times taken by A and B = 1 : 3.
The time difference is (3 - 1) 2 days while B take 3 days and A takes 1 day.
If difference of time is 2 days, B takes 3 days.
If difference of time is 60 days, B takes3x 60= 90 days.
2
So, A takes 30 days to do the work.
A's 1 day's work =1
30
B's 1 day's work =1
90
(A + B)'s 1 day's work =1+1=4=2
30909045
 A and B together can do the work in45= 221days.
22

Oct 24, 2010

What is the journey length?

A train travels at an average speed of 40kmph to reach its destination. But at d speed of 35kmph it reaches 15min late. wat's the journey length?

Answer: 
70km

Oct 23, 2010

What is the relation?

A girl introduces a boy that he is my father's mother's son-in-law's son. How the girl related to the boy?

Answer: 
Cousin

Oct 22, 2010

Find out the next no.

Try this...
9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?, 17 = ?


Answer:   
16 = 7
17 = 9


Explanation:
The numbers on the right hand side signifies the number of letters in the spelling of the numbers on the left hand.
Eg: 16(Sixteen) = 7
      17(Seventeen) = 9

Oct 21, 2010

How many times will it flash??

If a light flashes every 6 seconds, how many times will it flash in 3/4of an hour?


Answer: 
451 times.
Explanation:
There are 60 minutes in an hour.
            In ¾ of an hour there are (60 * ¾) minutes  = 45 minutes.
                        In ¾ of an hour there are (60 * 45) seconds = 2700 seconds.
            Light flashed for every 6 seconds.
                        In 2700 seconds 2700/6 = 450 times.
The count start after the first flash, the light will flashes 451 times in ¾ of an hour.

Who was the second?

5 boys were climbing a hill. J was following H. R was just ahead of G. K was between G & H. They were climbing up in a column.Who was the second?



Answer:
G.
            Explanation:
            The order in which they are climbing is R – G – K – H – J    

What is the relation?

Introducing a boy, a girl said, "He is the son of the daughter of the father of my uncle." How is the boy related to the girl?

Answer:Brother
Explanation:
The father of the boy's uncle → the grandfather of the boy and daughter of the grandfather → sister of father.

Oct 19, 2010

How many times do the hands of a clock coincide in a day?

How many times do the hands of a clock coincide in a day?

Answer:
22

Explanation:
The hands of a clock coincide 11 times in every 12 hours (Since between 11 and 1, they coincide only once, i.e., at 12 o'clock).
AM
12:00
1:05
2:11
3:16
4:22
5:27
6:33
7:38
8:44
9:49
10:55


PM
12:00
1:05
2:11
3:16
4:22
5:27
6:33
7:38
8:44
9:49
10:55

The hands overlap about every 65 minutes, not every 60 minutes.
The hands coincide 22 times in a day.

What will be the time?

If time at this moment is 9 P.M., what will be the time 23999999992 hours later?

Answer :
1 P.M


Explanation
  24 billion hours later, it would be 9 P.M. and 8 hours before that it would be 1 P.M.
 

Oct 18, 2010

Find the length of the tunnel..

A train 800 metres long is running at a speed of 78 km/hr. If it crosses a tunnel in 1 minute, then the length of the tunnel (in meters) is??


Answers:
500meters


Explanation:

Speed =(78 x5(m/sec=(65(m/sec.
183

Time = 1 minute = 60 seconds.
Let the length of the tunnel be x metres.
Then,(800 + x(=65
603

=> 3(800 + x) = 3900
=> x = 500

What is the relation??

Boy's mother in law is mother of girl's mother in law then what is relation between boy and girl?


Answer:
Girl is boy's daughter-in-law.

Oct 16, 2010

What is the age of youngest child??

The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What is the age of the youngest child?

Answer: 
4 Years.

Explanation:
Let the ages of children be x, (x + 3), (x + 6), (x + 9) and (x + 12) years.
Then, x + (x + 3) + (x + 6) + (x + 9) + (x + 12) = 50
 5x = 20
 x = 4.
 Age of the youngest child = x = 4 years.

What is the percentage??

A batsman scored 110 runs which included 3 boundaries and 8 sixes. What percent of his total score did he make by running between the wickets?

Answer: 
455%
11
Explanation:
Number of runs made by running = 110 - (3 x 4 + 8 x 6)
= 110 - (60)
= 50.
 Required percentage =50x 100% = 455%
11011

Oct 15, 2010

How is this possible???

Hans is standing behind Gerrie and at the same time Gerrie is standing behind Hans. How is this possible?


Answer:
They are standing Back to Back

Find out the next no..

6+3=279
4+3=217 
8+9=15317 
15+12=?????


Answer:
32427

What is the age of peter?

Peter is twice as old as Paul was when paul is as old as peter now. And sum of their Ages is 24. What is the age of peter??

Answer:
16

How many hours to complete the job?

Thirty men take 20 days to complete a job working 9 hours a day.How many hour a day should 40 men work to complete the job?
Answer: 
6.75hours



Before.....
one day work=1/20
one hour work=1/(20x9)
one men work=1/(20x9x30)


now....

one day work=1/20
one hour work=1/(20xY)
one men work=1/(20xYx40)
ie, 1/(20x9x30) = 1/(20xYx40)
after calculation Y=27/4
Y=6.75hours.

Who lied??

Lion lies on : MON TUE WED
RAT lies on : WED THURS SAT
If lion says : I didn’t lie yesterday
RAT says : I didn’t lie yesterday
so what day is today?
Answer:
Tuesday....
The statement "I didn't lie yesterday" indicates:
1. If X is lying today, X was lying yesterday
or
2. If X is not lying today, X didn't lie yesterday
Answer is Tuesday ( Lion is lying, Rat is speaking the truth).