• recategorized by
19,954 views
51 51 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

14 Answers

Best answer
70 70 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
28 28 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
19 19 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 13 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

1 1 vote
B> is correct.

Assuming single option.

->Apple or orange cannot be selected .Since both can  be possible.

->Now only choice to assume your trick on option B.

->You already know how to proceed further.This question is already answered by DHRUV patel
Answer:
Position:
Show:

Related questions

30 30 votes
10 answers 10 answers
9.7k
9.7k views
Arjun asked Feb 14, 2017
9,740 views
There are five buildings called $V$, $W$, $X$, $Y$ and $Z$ in a row (not necessarily in that order). $V$ is to the West of $W$. $Z$ is to the East of $X$ and the West of ...
17 17 votes
5 answers 5 answers
7.6k
7.6k views
go_editor asked Feb 13, 2015
7,643 views
The head of newly formed government desires to appoint five of the six selected members $P, Q, R, S, T$ and $U$ to portfolios of Home, Power, Defense, Telecom, and Financ...
94 94 votes
12 answers 12 answers
35.0k
35.0k views
Arjun asked Feb 14, 2017
35,015 views
Consider the following two functions.void fun1(int n) { if(n == 0) return; printf("%d", n); fun2(n - 2); printf("%d", n); } void fun2(int n) { if(n == 0) return; printf("...
35 35 votes
6 answers 6 answers
14.7k
14.7k views
Arjun asked Feb 14, 2017
14,743 views
An air pressure contour line joins locations in a region having the same atmospheric pressure. The following is an air pressure contour plot of a geographical region. Con...