Placement AptitudeHardTCS NQT · Infosys
A drawer holds 10 black and 10 white socks. Socks are taken out in the dark. What is the least number that must be taken out to be sure of getting at least one matching black pair AND at least one matching white pair?
- A. 3
- B. 4
- C. 12
- D. 21
Correct answer: C. 12
In the worst case all 10 socks of one colour come out first; then 2 more of the other colour are needed: 10 + 2 = 12. 3 only guarantees some pair; 4 is a common wrong guess.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- What is the least number of people that must be in a group to be sure that at least 3 of them were born in the same month?
- A bag has 3 red, 4 blue and 5 green balls. Three balls are drawn together at random. What is the probability that they are of three…
- A fair coin is tossed 10 times. What is the probability that the number of heads is greater than the number of tails?
- Anil and Bina each toss 3 fair coins. What is the probability that they get the same number of heads?
- A tosses 4 fair coins and B tosses 3 fair coins. What is the probability that A gets more heads than B?
- Two numbers x and y are picked independently and uniformly at random from the interval [0, 2]. What is the probability that |x − y| < 1?