We have two buckets, 1 of capacity 3liter and another of 5 liter.We have 5 liters of water.So how will we make combinations such that 1 bucket will have exactly 4 liters of water?

Answered On : Feb 28th, 2007

First pour 5 liter of water in 3 liter container .... now you will have 2 liter remaning in 5 liter...now empty the 3 liter and fill it with 2 liter from the 5 lit container..... now take 5 liter and pour one more liter to 3 liter container ...now you are left with 4 liter in 5 liter container

5         3

5         0
2         3
2         0
0         2
5         2
4         3

Answered by: sugins on: Apr 1st, 2012

1.Keep the 5lit bucket full and 3lit bucket empty. 2. Now pour water into the 3 lit bucket from the 5lit bucket and full it. 3.Now we will hav remaining 2lit of water in 5lit bucket and 3lit of water...

Answered by: Gopal27 on: Jan 28th, 2012

1. Fill 3lt bucket from 5lt (the left water is 2lt)
2. Fill 5lt from 3lt
3. Again fill 3lt from 2lt water
4. Then this 3lt bucket fill from 5lt bucket
5. As this we found 4lt water in 5lt bucket..

My interviewer asked me I want maintain same header and footer in number of pages what is the way to do minimum level of code I use? I said user control he again asked what areall the other ways?

Answered by: pervej on: Nov 18th, 2011

frame
masterpage
usercontrol

Answered by: dev008rhk on: Nov 3rd, 2011

you can create usercontrols of both the footer and header and put then in masterpage.its very easy to maintain