A Candle Burns in 6 Hrs..Another Candle of the same height and width burns in 8 Hrs...After How Many Hours the height of the first candle will be half of the second Candle....
Train X starts from A towards B which is 180 Kms apart. At same time, train Y start from B towards A. Train X travels at speed of 70 kmph and Y travels at 50 kmph. While X does not stop anywhere on the way, the train Y stops at station C in between at 60km from B for 15 minutes. At what distance from A they would meet
Let the meet at a distance x km from A.
So x/70 = (180-x)/50 + 1/4
or, 100x/70 = 360-2x+25
or, 10x = 2520 - 14x + 175
or, 24x = 2695
or, x = 2695/24 = 112.3km
Q. No. :
3
Question :
A boat takes 90 minutes less to travel 36 miles downstream than to travel the same distance upstream. If the speed of the boat in still water is 10 mph, the speed of the stream is:
Let the speed of the stream x mph. Then, Speed downstream = (10 + x) mph, Speed upstream = (10 - x) mph. 36 /(10 - x) - 36 /(10 + x) = 90/60 (72x )* 60 = 90 (100 - x2) x2 + 48x + 100 = 0 (x+ 50)(x - 2) = 0 x = 2 mph.
Q. No. :
4
Question :
Salaries of Ravi and Sumit are in the ratio 2 : 3. If the salary of each is increased by Rs. 4000, the new ratio becomes 40 : 57. What is Sumit's salary?
Angle traced by hour hand in 17/2 hrs = (360/12)*(17/2) = 255 º
Angle traced by min. hand in 30 min. = (360/60)*(30) = 180 º
Required angle = (255 - 180)º = 75º.
Each of the following questions is based on the following information:
1. Six flats on a floor in two rows facing North and South are allotted to P, Q, R, S, T and U.
2. Q gets a North facing flat and is not next to S.
3. S and U get diagonally opposite flats.
4. R next to U, gets a south facing flat and T gets North facing flat.
Q. No. :
6
Question :
Which of the following combination get south facing flats?
Five offices in Mumbai are run by five couples
Husbands: Bala, Girish, Jai, Jayesh, Pratap
Wife: Beena, Chand, Maya, Preeti, Sangeeta
Surname: Bakshi, Joshi, Natwar, Parikh, Sahni
Office: Air India, Jet, Ashiana, Indian Court, American Court
No husband shares a first name initial with his wife
Only one husband who is not Pratap has an identical initial for his first name and surname, but none of the wives does
The Air India is run by Jai and his wife
Girish and Maya are one of the couples
Chand’s husband is Mr. Natwar
Mrs. Joshi is the owner of Jet and Preeti is the owner of American Court; neither of them is married to Jayesh
The office run by the Sahni has the word ‘Court’ as part of its name
The Ashiana is not run by Mr.Parikh whose wife is not Sangeeta
A, B, G and T are robots and P,Q, R, S ,T& U are machines. No robot can be assigned to more than 1 machine at the same time.
* A and B are required to run machine T
* Band G are required to run machine R
* G and T are required to run Machine P
* Machine Q can be run by only A
* Machine S and U can be run by any of the robots independently
Q. No. :
15
Question :
If machine Q is running which other machines cannot run simultaneously?
When machines Q, S, U are working 3 robots are required. Hence 1 will remain idle.
4 people Arti, Banti, Chetan and Dolly have together got Rs100 with them. Arti and Banti together have got as much money as Chetan & Dolly put together. Arti has got more money than Banti. Chetan has half as much money as Dolly has. Arti has Rs5 more than Dolly.
Five friends meet every morning at Sree Sagar restaurant for an idli-vada breakfast. Each consumes a different number of idlis and vadas. The number of idlis consumed are 1, 4, 5, 6, and 8, while the number of vadas consumed are 0, 1, 2,4, and 6. Below are some more facts about who eats what and how much.
i. The number of vadas eaten by Ignesh is three times the number of vadas consumed by the
person who eats four idlis.
ii. Three persons, including the one who eats four vadas, eat without chutney.
iii. Sandeep does not take any chutney.
iv. The one who eats one idli a day does not eat any vadas or chutney. Further, he is not Mukesh.
v. Daljit eats idli with chutney and also eats vada.
vi. Mukesh, who does not take chutney, eats half as many vadas as the person who eats twice as
many idlis as he does.
vii. Bimal eats two more idlis than Ignesh, but Ignesh eats two more vadas than Bimal.
Q. No. :
22
Question :
Which of the following statements is true?
A :
Mukesh eats 8 idlis and 4 vadas but no chutney.
B :
The person who eats 5 idlis and 1 vada does not take chutney.
C :
The person who eats equal number of vadas and idlis also takes chutney.
D :
The person who eats 4 idlis and 2 vadas also takes chutney.
#include< stdio.h >
int sumdig(int);
int main()
{
int a, b;
a = sumdig(123);
b = sumdig(123);
printf("%d, %d
", a, b);
return 0;
}
int sumdig(int n)
{
int s, d;
if(n!=0)
{
d = n%10;
n = n/10;
s = d+sumdig(n);
}
else
return 0;
return s;
}
A :
4,4
B :
3,3
C :
6,6
D :
12,12
Answer: C
Q. No. :
2
Question :
Assume integer is 2 bytes wide. How many bytes will be allocated for the following code?
Step 1: x=y=z=1; here the variables x ,y, z are initialized to value '1'.
Step 2: z = ++x || ++y && ++z; becomes z = ( (++x) || (++y && ++z) ). Here ++x becomes 2. So there is no need to check the other side because ||(Logical OR) condition is satisfied.(z = (2 || ++y && ++z)). There is no need to process ++y && ++z. Hence it returns '1'. So the value of variable z is '1'
Step 3: printf("x=%d, y=%d, z=%d
", x, y, z); It prints "x=2, y=1, z=1". here x is increemented in previous step. y and z are not increemented.
Q. No. :
4
Question :
What is the output of the following program segment?
void max(int x, int y, int m)
{ if(x>5) m=x;
else m=y;}
int main()
{
int i=20, j=5, k=0;
max(i,j,k);
printf("%d",k);
}