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 / sonia

fill 5 liters jar and pour in 3 liters------ now you have 3 in 3 liters and 2 in 5 liters.
pour away the 3 in 3 liters jar and transfer the 2 in the now empty 3 liters.
Fill 5 liters jar again and pour in 3 liters jar----- Now you have 1 from 5 liters and 2 that were in 3 liters jar already. this gives you 4 in the 5 liters jar.

Is This Answer Correct ?    0 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 / guest

First fill up the 5 liters jar and start filling 3 liters
jar. so now second jar has 3 liters and first jar has 2
liters. Now again fill 5 liters fully and to complete
second jar 1 liter is needed. So, put water in second jar
from first jar. so, 3 liters jar is full now. And first jar
has 4 liters water.

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More OOPS Interview Questions

Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


What is oop in simple words?

1 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  


What is the example of polymorphism?

0 Answers  


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,






What is the difference between pass by reference and pass by value?

12 Answers   Pfizer, TCS,


Why is abstraction needed?

0 Answers  


How to create a comment page in C #??

2 Answers  


what is the usage of clas templates

5 Answers  


What are the 4 pillars of oop?

0 Answers  


What is the different between Applet and Application?

2 Answers  


What is the use of unnamed namespaces in OOPS? The only advantage I know is that they dont need the scope resolution operator while accessing them. I want to know some other advantages of unnamed namespaces...

2 Answers  


Categories