Placement AptitudeVery hardCAT · TCS NQT
How many 4-digit numbers (1000 to 9999) use exactly two different digits, such as 3383 or 7000?
- A. 630
- B. 567
- C. 504
- D. 576
Correct answer: B. 567
Two non-zero digits: 9C2 = 36 pairs, each giving 2⁴ − 2 = 14 strings: 504. A non-zero digit a with 0: a must lead, and the other 3 places use a or 0 but not all a: 2³ − 1 = 7, so 9 × 7 = 63. Total 567. 630 ignores the leading-zero problem; 576 allows 'aaaa' in the second case.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A number from 1 to 100 is chosen at random, and it turns out not to be divisible by 5. What is the probability that it is divisible by 2…
- Two players each roll a fair die; the higher number wins, and on a tie both roll again. What is the expected number of rounds needed to…
- A point is chosen at random inside a square of side 2 units. What is the probability that it lies within 1 unit of the centre of the square?
- How many 5-digit numbers have digits that alternate between odd and even (for example 52741 or 21036)?
- A box has 2 white and 3 black balls. All five are drawn one by one without replacement. What is the probability that the last ball drawn…
- A fair die is rolled repeatedly until the running total of all the rolls is at least 2. What is the expected number of rolls?