• edited by
1,838 views
0 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 (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 (X) 

Drain out all the water contained in bottle labelled X.DRAIN (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$ litres 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 (in litres) is contained in C?

  1. One 
  2. Two
  3. Zero 
  4. None of these

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
1.4k
1.4k views
go_editor asked Mar 29, 2016
1,407 views
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 ...
0 0 votes
0 0 answers
1.3k
1.3k views
go_editor asked Mar 2, 2016
1,297 views
Three small pumps and one additional pump are filling a tank. Each of the three small pumps works at $2/3$ rd the rate of the large pump. If all $4$ pumps work at the sam...
2 2 votes
1 answers 1 answer
2.9k
2.9k views
soujanyareddy13 asked Jan 20, 2022
2,941 views
Two pipes $\text{A}$ and $\text{B}$ are attached to an empty water tank. Pipe $\text{A}$ fills the tank while pipe $\text{B}$ drains it. If pipe $\text{A}$ is opened at $...
1 1 vote
0 0 answers
2.9k
2.9k views
Krithiga2101 asked Mar 9, 2020
2,930 views
There are two water drums in my house whose volumes are in the ratio $1: 5$. Every day the smaller drum is filled first and then the same pipe is used to fill the bigger ...
3 3 votes
1 1 answer
2.2k
2.2k views
go_editor asked Mar 20, 2020
2,192 views
A tank is emptied everyday at a fixed time point. Immediately thereafter, either pump $\text{A}$ or pump $\text{B}$ or both start working until the tank is full. On Monda...