Placement AptitudeHardCAT · TCS NQT Advanced
How many solutions in non-negative integers does x + 2y + 3z = 12 have?
- A. 19
- B. 91
- C. 12
- D. 25
Correct answer: A. 19
Go through z = 0, 1, 2, 3, 4: then x + 2y = 12, 9, 6, 3, 0, which has 7, 5, 4, 2, 1 solutions. Total 19. 91 = C(14, 2) wrongly treats it as x + y + z = 12.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- Three vertices of a regular 12-sided polygon are joined to form a triangle. How many of these triangles are isosceles (equilateral ones…
- A and B play a match of fair games (each game is equally likely to be won by either). A needs 2 more wins to take the match and B needs 3…
- Two teams play a best-of-7 series (first to 4 wins). Team A wins any game with probability 2/3, independently. What is the probability…
- The numbers b and c are obtained by rolling a fair die twice. What is the probability that x² + bx + c = 0 has real roots?
- How many functions f from {1, 2, 3, 4, 5} to itself satisfy f(f(x)) = x for every x?
- How many functions f from {1, 2, 3, 4} to {1, 2, …, 6} satisfy f(1) ≤ f(2) ≤ f(3) ≤ f(4)?