CAT DILR Questions | CAT Logical Reasoning questions

Comprehension

Directions for questions: Read the information given below and answer the questions that follow :

There are three vessels A, B and C with capacities 5, 3 and 2 respectively. There is a computer program that can perform certain functions as described below:

Drain (Y) : drains the liquid in a vessel Y.

Fill (X, Y) : fill amount from Y into X such that the amount of liquid withdrawn from Y is equal to the liquid in X.

Empty (X,Y) : empty amount from Y into X such that the amount left in Y is equal to the amount of liquid in X.

CAT/2000

Question . 144

The following operations are performed in succession

1. Fill k(C, A)

2. .....................

3. Fill (C, A)

Empty (C, B)What should the second operation be if after the three operations A should contain one litre of liquid ?

View Answer

Explanatory Answer

Method of solving this CAT DILR Question from Logical Reasoning question

(d) From the first operation Fill (C, A) water is taken out from vessel A and vessel C is filled . Now in the second operation water from the vessel C is filled in vessel B this operation can be written as fill (B,C).