Comprehension
A person is asked to put in a basket one apple when ordered ‘One’, one guava when ordered ‘Two’, one orange when ordered ‘Three’ and is asked to take out from the basket one apple and one guava both when ordered ‘Four’. The order 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 \]
Question: 1

How many fruits will be there in the basket at the end of the above order sequence?

Updated On: May 6, 2026
  • 10
  • 11
  • 12
  • 13
  • 14
Show Solution

The Correct Option is B

Solution and Explanation

To determine the number of fruits in the basket at the end of the given order sequence, let's analyze each step according to the described rules:

  • Order 'One': Add 1 apple
  • Order 'Two': Add 1 guava
  • Order 'Three': Add 1 orange
  • Order 'Four': Remove 1 apple and 1 guava

Given Order Sequence: \(1\ 2\ 3\ 3\ 2\ 1\ 4\ 2\ 3\ 1\ 4\ 2\ 2\ 3\ 3\ 1\ 4\ 1\ 1\ 3\ 2\ 3\ 4\)

We will track the count of each fruit as well as the total:

StepActionApplesGuavasOrangesTotal
1Add 1 apple1001
2Add 1 guava1102
3Add 1 orange1113
4Add 1 orange1124
5Add 1 guava1225
6Add 1 apple2226
7Remove 1 apple, 1 guava1124
8Add 1 guava1225
9Add 1 orange1236
10Add 1 apple2237
11Remove 1 apple, 1 guava1135
12Add 1 guava1236
13Add 1 guava1337
14Add 1 orange1348
15Add 1 orange1359
16Add 1 apple23510
17Remove 1 apple, 1 guava1258
18Add 1 apple2259
19Add 1 apple32510
20Add 1 orange32611
21Add 1 guava33612
22Add 1 orange33713
23Remove 1 apple, 1 guava22711

The total number of fruits in the basket at the end of the sequence is 11.

Was this answer helpful?
0
Question: 2

How many guavas will be there in the basket at the end of the above order sequence?

Updated On: May 6, 2026
  • 1
  • 2
  • 3
  • 4
  • 5
Show Solution

The Correct Option is B

Solution and Explanation

To solve this problem, let us process the given sequence of orders and determine the changes to the number of guavas in the basket:

  1. Recap the Rules:
    • Order ‘One’: Add 1 apple
    • Order ‘Two’: Add 1 guava
    • Order ‘Three’: Add 1 orange
    • Order ‘Four’: Remove 1 apple and 1 guava
  2. Initial state: The basket is empty, so there are 0 guavas.
  3. Go through the sequence: \(1\ 2\ 3\ 3\ 2\ 1\ 4\ 2\ 3\ 1\ 4\ 2\ 2\ 3\ 3\ 1\ 4\ 1\ 1\ 3\ 2\ 3\ 4\)
  4. Track changes to guavas for each order:
OrderGuava Count ChangeTotal Guavas
2+11
3+01
3+01
2+12
1+02
4-11
2+12
3+02
1+02
4-11
2+12
2+13
3+03
3+03
1+03
4-12
1+02
1+02
3+02
2+13
3+03
4-12
  1. Result: At the end of the sequence, there are 2 guavas in the basket.
  2. The correct option is 2.
Was this answer helpful?
0
Question: 3

How many apples will be there in the basket at the end of the above order sequence?

Updated On: May 6, 2026
  • 1
  • 2
  • 3
  • 4
  • 5
Show Solution

The Correct Option is B

Solution and Explanation

To determine how many apples are in the basket at the end of the sequence, we need to follow the instructions provided in the sequence order:

  • When ordered "1", add one apple to the basket.
  • When ordered "2", add one guava to the basket.
  • When ordered "3", add one orange to the basket.
  • When ordered "4", remove one apple and one guava from the basket if available.

Now, let's process the sequence step-by-step:

  1. 1: Add 1 apple.
  2. 2: Add 1 guava.
  3. 3: Add 1 orange.
  4. 3: Add 1 orange.
  5. 2: Add 1 guava.
  6. 1: Add 1 apple.
  7. 4: Remove 1 apple and 1 guava.
  8. 2: Add 1 guava.
  9. 3: Add 1 orange.
  10. 1: Add 1 apple.
  11. 4: Remove 1 apple and 1 guava.
  12. 2: Add 1 guava.
  13. 2: Add 1 guava.
  14. 3: Add 1 orange.
  15. 3: Add 1 orange.
  16. 1: Add 1 apple.
  17. 4: Remove 1 apple and 1 guava.
  18. 1: Add 1 apple.
  19. 1: Add 1 apple.
  20. 3: Add 1 orange.
  21. 2: Add 1 guava.
  22. 3: Add 1 orange.
  23. 4: Remove 1 apple and 1 guava.

Through the sequence above, we need to keep track of the number of apples:

  • Initial apples after adding and removal actions: 1 (after processing up to step 11).
  • Adding 1 apple each in steps 16, 18, and 19.
  • Then, 1 more apple removed during the final step 23.

The net number of apples left: 2 apples.

Thus, the correct answer is 2 apples.

Was this answer helpful?
0