Ramu is given Rs 382 in one-rupee coins. He has been asked to
allocate them into a number of bags such that any amount required between Re
1 and Rs 382 can be given by just handling out a certain number of bags
without opening any of them. What is the minimum number of bags possible?
whenever such a problem is given the key usually lies in powers of 2
or 3. So i tried with powers of 2 ( since we cannot open a bag )
the various bags he can have are, 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8,
16, 32, 64 ( since 382 = 255 + 127 )
that is 15 bags, so the answer is A
Q. No. :
2
Question :
In a group of 6 boys and 4 girls, four children are to be selected. In how many different ways can they be selected such that at least one boy should be there?
We may have (1 boy and 3 girls) or (2 boys and 2 girls) or (3 boys and 1 girl) or (4 boys). Required number of ways = (6C1 x 4C3) + (6C2 x 4C2) + (6C3 x 4C1) + (6C4) = (6C1 x 4C1) + (6C2 x 4C2) + (6C3 x 4C1) + (6C2) = (24 + 90 + 80 + 15) = 209.
Q. No. :
3
Question :
Two trains are running in opposite directions with the same speed. If the length of each train is 120 metres and they cross each other in 12 seconds, then the speed of each train (in km/hr) is:
Let the speed of each train be x m/sec.
Then, relative speed of the two trains = 2x m/sec.
So, 2x = (120 + 120)/12
=> 2x = 20
=> x = 10.
Therefore Speed of each train = 10 m/sec = (10 x 18 /5)km/hr = 36 km/hr.
Q. No. :
4
Question :
A two-digit number is such that the product of the digits is 8. When 18 is added to the number, then the digits are reversed. The number is:
Let the ten's and unit digit be x and 8/x respectively. Then, 10x + 8/x + 18 = 10 x 8 /x + x 10x2 + 8 + 18x = 80 + x2 9x2 + 18x - 72 = 0 x2 + 2x - 8 = 0 (x + 4)(x - 2) = 0 x = 2.
Q. No. :
5
Question :
A rectangular park 60 m long and 40 m wide has two concrete crossroads running in the middle of the park and rest of the park has been used as a lawn. If the area of the lawn is 2109 sq. m, then what is the width of the road?
Area of the park = (60 x 40) m2 = 2400 m2. Area of the lawn = 2109 m2. Area of the crossroads = (2400 - 2109) m2 = 291 m2. Let the width of the road be x metres. Then, 60x + 40x - x2 = 291 x^2 - 100x + 291 = 0 (x - 97)(x - 3) = 0 x = 3.
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. :
6
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.
Answer: C
Q. No. :
7
Question :
Which one of the following statements is true?
A :
Daljit eats 5 idlis
B :
Ignesh eats 8 idlis.
C :
Bimal eats 1 idli.
D :
Bimal eats 6 idlis.
Answer: A
Q. No. :
8
Question :
Which of the following statements is true?
A :
Sandeep eats 2 vadas.
B :
Mukesh eats 4 vadas.
C :
Daljeet eats 6 vadas.
D :
Bimal eats 3 vadas.
Answer: C
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
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.
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. :
18
Question :
Which of the following combination get south facing flats?
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. :
22
Question :
If machine Q is running which other machines cannot run simultaneously?
While calling the function myFunc address of array is passed and it is incremented by 3. Hence Now the address is pointing to L and print onwards ie LLO
Q. No. :
3
Question :
What is a proper method of opening a file for writing as binary file?