Q:
A person is asked to put in a basket one apple when ordered 'one', one guava when ordered 'two', one orange whe ordered 'three' and is asked to take out from the basket one apple and one guava both when ordered 'four'. The ordered sequence executed by the person is as follows :
1 2 3 3 2 1 4 2 3 1 4 2 2 3 3 1 4 1 1 3 2 3 4
1. How many apples will be there in the basket at the end of the above order sequence ?
(a) 4 (b) 3 (c) 2 (d) 1
2. How many fruits will be there in the basket at the end of the above order sequence ?
(a) 13 (b) 17 (c) 9 (d) 11
Answer
1. Answer (c)
Each time we order 1, one apple is added to the basket but each time when 4 is ordered, one apple is removed from it.
Required number of apples = number of 1's - number of 4's = 6 - 4 = 2
2. Answer (d)
Each time we order 1, 2 or 3, one fruit is added to the basket but when ever we order 4, two fruits are removed from it.
Required number = Number of 1's + Number of 2's + Number of 3's - 2 x (Number of 4's)
= 6 + 6 + 7 - (2x4)
= 19 - 8
= 11.
View answer
Workspace
Report Error
Discuss