Feb 24, 2011

24. Find the output.

void main()
{
int i=3, *j, k;
j = &i;
printf("%d\n", i**j*i+*j);
}


Answer: 
30

Feb 23, 2011

23. A triangle is made from a rope. The sides of the triangle are 25 cm, 11 cm and 31 cm. What will be the area of the square made from the same rope?


Solution: 
Add all sides 25+11+31 to get rope length rope length =67,rope is made in to as square. So side of square is 67/4=16.75 and so area is 16.75*16.75=280.5625.
Ans : 280.5625

Dec 1, 2010

19. A train 130 metres long and travelling at 45 km/hr can cross a bridge in 30 seconds. Find the length of the bridge.

Answer:
245 m.  
Explanation:
Speed =45 x5m/sec=25m/sec.
182

Time = 30 sec.
Let the length of bridge be x metres.
Then,130 + x=25
302
 2(130 + x) = 750
 x = 245 m.

Nov 27, 2010

18. Pointing to a lady a person said, "The son of her only brother is the brother of my wife." How is the lady related to the person?

Answer:
Sister of father-in-law 
Explanation:
Brother of person's wife → brother-in-law of the person. Hence, the son of lady's brother is brother-in-law of the person.
Therefore, the brother of the lady is the father-in-law of the person. Hence, the lady is the sister of the person's father-in-law.

Nov 26, 2010

Nov 25, 2010

16. Find the output.

int main()
{
int ***r, **q, *p, i=8;
p = &i;
q = &p;
r = &q;
printf("%d, %d, %d\n", *p, **q, ***r);
return 0;
}

Answer:
8,8,8

Nov 22, 2010

15. Find the Next no

If
5+3+2=151012 ,
9+2+4=183662.
8+6+3=482466,
5+4+5=202504
then what ll be the answer of
7+2+5=??????

Answer:
143542

Explanation:
a+b+c = (a*b)&(a*c)&reverse[b(a+c)]