CAT 2000QA Question 30

Pipes & CisternsEasy
Passage / Data

Answer the following question based on the information given below.

There are three bottles of water, A, B, C, whose capacities are 5 litres, 3 litres, and 2 litres respectively. For transferring water from one bottle to another and to drain out the bottles, there exists a piping system. The flow thorough 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.

​​​​​​​

Initially, A is full with water, and B and C are empty.

After executing a sequence of three instructions, bottle A contains one litre of water. The first and the third of these instructions are shown below

First instruction FILL (C, A)

Third instruction FILL (C, A)

Then which of the following statements about the instructions is true?

Answer & solution

  • A

    The second instruction is FILL (B, A)

  • The second instruction is EMPTY (C, B)

  • C

    The second instruction transfers water from B to C

  • D

    The second instruction involves using the water in bottle A.

Solution

Instruction 1: FILL (C, A)

2 litres of water is transferred from A to C

∴ A has 3 litres of water left and C has 2 litres of water.

Instruction 3: FILL (C, A)

2 litres of water is transferred from A to C

∴ A has 1 litres of water left and C has 2 litres of water.

Since the third instruction again transfers water from A to C, C should be empty before the third operation. Thus, instruction 2 should be either “EMPTY (C, B)” or “DRAIN (C)”.

Hence, option (b).

CAT 2000 QA Q30: After executing a sequence of three instructions, bottle A contains one litre of water. The first and the thir — Solution | TheCATExam