recategorized by
10,703 views
23 votes
23 votes

There are three boxes. One contains apples, another contains oranges and the last one contains both apples and oranges. All three are known to be incorrectly labeled. If you are permitted to open just one box and then pull out and inspect only one fruit, which box would you open to determine the contents of all three boxes?

  1. The box labeled ‘Apples’
  2. The box labeled ‘Apples and Oranges’
  3. The box labeled ‘Oranges’
  4. Cannot be determined
recategorized by

8 Answers

Best answer
33 votes
33 votes
B. the box labelled 'Apples and Oranges'.

Reason.

We know that the box labeled "Apples and Oranges" can't contain both, so whatever we pick will be the correct label.

Without the loss of generality say picked item was an orange, what that means is that the box that is labeled "Apples" can't contain just oranges. It also can't contain just apples as it is known to be wrong. So it only can contain combination of oranges and apples. Now the third box labeld "Oranges" contains only apples.
selected by
14 votes
14 votes

option B --both


lets assume:
box 1 is labelled Oranges (O)
box 2 is labelled Apples (A)
box 3 is labelled Apples and Oranges (A+O)
and that ALL THREE BOXES ARE LABELLED INCORRECTLY"

Pick a fruit from box 1,

1) if you pick an Orange:
- box 1's real label can only be O or A+O
- box 1's current label is O
- since ALL LABELS ARE INCORRECT then box 1's real label can not be O
- box 1's new label should then be A+O by elimination
- since ALL LABELS ARE INCORRECT
- box 2's label is changed to O
- box 3's label is changed to A
- SOLVED

2) if you pick an Apple:
- box 1's real label can only be A or A+O
- box 1's current label is O
- since ALL LABELS ARE INCORRECT then box 1's real label can not be O
- this still leaves us with the choice between label A and label A+O - which would both be correct
- FAILURE

Solution: The trick is to actually pick a fruit from the A+O labeled box

Pick a fruit from box 3:

1) if you pick an Orange:
- box 3's real label can only be O or A
- box 3's current label is A+O
- since ALL LABELS ARE INCORRECT then box 3's real label can not be A+O
- box 3's new label should then be O by elimination
- since ALL LABELS ARE INCORRECT
- box 1's label is changed to A
- box 2's label is changed to A+O
- SOLVED

2) if you pick an Apple:
- box 3's real label can only be O or A
- box 3's current label is A+O
- since ALL LABELS ARE INCORRECT then box 3's real label can not be A+O
- box 3's new label should then be A by elimination (not O)
- since ALL LABELS ARE INCORRECT
- box 1's label is changed to A+O
- box 2's label is changed to O
- SOLVED

link-https://www.glassdoor.co.in/Interview/There-are-three-boxes-one-contains-only-apples-one-contains-only-oranges-and-one-contains-both-apples-and-oranges-The-b-QTN_114922.html

13 votes
13 votes
Open the box that is labeled "Apples and Oranges".You know that since none of the labels are correct, the box must either contain only apples, or only orangesSuppose, that you remove an apple from that box. Therefore, that box is the "Apples Only" box.One of the two remaining boxes must be the "Oranges Only" box. However, one of them is labeled "Apples Only", and the other is labeled "Oranges Only". Therefore, the one labeled "Apples Only" is the box that contains only oranges, and the box labeled "Oranges Only" is the box that has both kinds of fruit.

So ans is b
7 votes
7 votes

Option should be B. The question has came aready in apple. Inc interview.

It's easier to draw it out.

There are only 2 possible combinations when all labels are tagged incorrectly.

All you need to do is pick one fruit from the one marked "Apples + Oranges".

If it's Apple, then change "Apple + Orange" to "Apple"
The "Apple" one change to "Orange"
The "Orange one change to "Apple + Orange"

If it's Orange, then change "Apple + Orange" to "Orange"
The "Apple" one change to "Apple + Orange"
The "Orange" one change to ""Apple"

source: https://www.glassdoor.co.in/Interview/There-are-three-boxes-one-contains-only-apples-one-contains-only-oranges-and-one-contains-both-apples-and-oranges-The-b-QTN_114922.htm

Answer:

Related questions

17 votes
17 votes
6 answers
1
15 votes
15 votes
3 answers
4