Placement AptitudeVery hardTCS NQT · Infosys
A 6-digit locker code (digits 0–9, leading 0 allowed) uses exactly two different digits, each appearing exactly three times, such as 727277. How many such codes are there?
- A. 1800
- B. 900
- C. 450
- D. 2790
Correct answer: B. 900
Choose the two digits: 10C2 = 45; choose the 3 places for the smaller one: 6C3 = 20. Total 900. 1800 picks the digits as an ordered pair (double counting); 2790 = 45 × (2⁶ − 2) allows any split, not 3 and 3.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- 20 identical laptops are to be shared among three labs A, B and C. A lab may get none, but Lab A can store at most 5. In how many ways can…
- A 4 × 4 square array of 16 dots is drawn (rows and columns equally spaced). How many triangles of non-zero area have all three vertices…
- Five offices stand around a circular courtyard, each next to two others. Each office is painted one of 4 colours so that neighbouring…
- Two fair dice are thrown together repeatedly until a total of either 6 or 7 appears. What is the probability that a 7 comes first?
- A fair coin is tossed until a head is immediately followed by a tail (the pattern HT). What is the expected number of tosses?
- The odds in favour of A solving a puzzle are 3 : 5 and the odds against B solving it are 7 : 2. If they work independently, what is the…