Question: There are three bottles of water — A, B, C, whose capacities are 5 L, 3 L, and 2 L respectively. For transferring water from one bottle to another and to drain out the bottles, there exists a piping system. The flow through these pipes is computer-controlled. The computer that controls the flow through these pipes can be fed with three types of instructions, as explained below.
Explanation of the instruction
Fill (X, Y)
Fill bottle labelled X from the water in bottle labelled Y, where the remaining capacity of X is less than or equal to the amount of water in Y.
Empty (X, Y)
Empty out the water in bottle labelled X into bottle labelled Y, where the amount of water in X is less than or equal to remaining capacity of Y.
Drain out all the water contained in bottle labelled X.
Initially, A is full with water, and B and C are empty.Consider the same sequence of three instructions and the same initial state mentioned above. Three more instructions are added at the end of the above sequence to have A contain 4 L of water. In this total sequence of six instructions, the fourth one is DRAIN (A). This is the only DRAIN instruction in the entire sequence. At the end of the execution of the above sequence, how much water is contained in C?
|None of these|
CAT Quant Questions with Video SolutionsCAT Quant Questions Set 01
CAT Quant Questions Set 02
CAT Quant Questions Set 03
CAT Quant Questions Set 04
CAT Quant Questions Set 05
CAT Quant Questions Set 06
Back to Main Page
CAT Quant Online Course
- 1000+ Practice Problems
- Detailed Theory of Every Topics
- Online Live Sessions for Doubt Clearing
- All Problems with Video Solutions