There are 2 empty jars of 5 and 3 liters capacity. And a
river is flowing besides. I want to measure 4 liters of
wanter using these 2 jars. How do you do this?

Answers were Sorted based on User's Feedback



There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measu..

Answer / rp

First of all fill 3litre jar fullyand then pour it into
5litre jar.Now again fill 3litre jar fully and pour it into
5litre jarNow 5litre jar is full and 3litre jar has 1litre
water. Now pour all the water of 5litre jar on the ground
and pour the 3litre's jar 1 litre into 5 litre jar. Now
again fill 3litre jar fully and pour into 5litre jar .Now
5litre jar has 4litre water.
You can simply understand as:-
1)3l jar=3,5l jar=0
2)3l jar=0,5l jar=3
3)3l jar=3,5l jar=3
4)3l jar=1,5l jar=5
5)3l jar=1,5l jar=0
6)3l jar=0,5l jar=1
7)3l jar=3,5l jar=1
8)3l jar=0,5l jar=4

Is This Answer Correct ?    29 Yes 1 No

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measu..

Answer / udd

1)3l jar=0,5l jar=5
2)3l jar=3,5l jar=2
3)3l jar=0,5l jar=2
4)3l jar=2,5l jar=0
5)3l jar=2,5l jar=5
6)3l jar=3,5l jar=4

Express your answer clearly ...Mr.answ2

Is This Answer Correct ?    10 Yes 0 No

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measu..

Answer / arun kumar yadav

fill 3 liter jar and put it in 5 liter jar two times then 1 liter left in 3 liter jar

empty 5 liter jar and put left of 3 liter jar and again fill 3liter jar and put it in 5 liter jar

now 5 liter jar contain 4 liter

Is This Answer Correct ?    8 Yes 0 No

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measu..

Answer / harminder

I think i got got bit more simpler solnn with lesser steps

1. Fill 5 ltr jar, pour it intoo 3 ltr till its full
2. Now 3 ltr jar is full n 5 ltr jar has 3 ltrs in it.
3. Empty 3 ltr jar, and pour 2 ltr in 3 ltr jar,, now 4 ltr has 3 ltrs in it and 5 ltr jar is empty
4. Fill 5 ltr jar and out of the 5ltr jar shift water in 3 ltr jar, since only 1 ltr can be tranferred into 3 ltr jar,,
the 5 ltr jar has 4 ltr water in it..

*Hell the interviewer must have seen "Die Hard Part 2 - With a Vengeance" the previous night

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More OOPS Interview Questions

what is main difference between object oriented object base

2 Answers   Wipro,


What is solid in oops?

0 Answers  


why function overloading is not called as pure polymorphism?

2 Answers  


In c++ there is only virtual destructors, no constructors. Why?

4 Answers   IBM, Polaris,


What is difference between data abstraction and encapsulation?

0 Answers  






who is the founder of c++?

15 Answers   Hexaware, ONGC,


What is the difference between an object and a class?

3 Answers  


What is byval and byref? What are differences between them?

0 Answers   HCL, Wipro,


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


Can you explain polymorphism?

0 Answers  


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


Write a program to get the binary tree.

3 Answers   ABC,


Categories