in Quantitative Aptitude edited by
0 votes
0 votes

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:

Instruction Type

Explanation of the Instruction


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 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.DRAIN (X)


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?

  1. The second instruction is FILL (B, A)
  2. The second instruction is EMPTY (C, B)
  3. The second instruction transfers water from B to C
  4. The second instruction involves using the water in bottle A.
in Quantitative Aptitude edited by
13.4k points

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true