Project Planning Question:
Download Questions PDF

Suppose You have 3 jars. Each jar has a label on it: white, black, or white&black. You have 3 sets of marbles: white, black, and white&black. One set is stored in one jar. The labels on the jars are guaranteed to be incorrect (i.e. white will not contain white). Which jar would you choose from to give you the best chances of identifying the which set of marbles in is in which jar?


there will be 2 combinations of the incorrect labeling.

lets suppose A,B,C are three jars and A has white, B has
Black and C has both of them.

now possible labeling will be A:B; B:B&W; C:W or A:B&W; B:W,
C:B . There cannot be other combinations...try it.

now in either of cases you choose the jar labeled with B&W
i.e mixture. and see which color of marbles are there. It
wont have both as it is incorrectly labeled. So it will be
the jar of such type of marbles and the remaining jars can
be easily identified with the justification of incorrect

Download Project Planning Interview Questions And Answers PDF

Previous QuestionNext Question
Write the test cases for a vending machine?Write the InStr function. Write the test cases for this function?