
A three-digit number for certain locks uses the digits $0,1,2,3,4,5,6,7,8,9$according to the following constraints. The first digits cannot be $0$or $1$, the second digit must be $0$ or $1$, and the second and third digits cannot be $0$in the same code. How many different codes are possible?
A) $144$
B) $152$
C) $160$
D) $168$
E) $176$
Answer
581.4k+ views
Hint: In this question evaluate the possible combination for first digit, second digit and third digit according to the given condition. There will be two cases for the second and third digits.
Complete step-by-step answer:
We are given that a three-digit number for certain locks uses the digits $0,1,2,3,4,5,6,7,8,9$.
There are some constraints in the question.
We solve our problem by making the cases.
Case-1
We are given that first digits cannot be $0$or $1$ it means the possible cases for first digit will be $8$
The second digit must be $0$ or $1$
In this case we consider the second digit will be $0$.
For the third digit the condition is that second and third digits cannot be $0$in the same code.
It means in this case no $0$ for the third digit.
Therefore, for the third digit there will be $9$ possibilities.
Hence, in this case the total codes will be $8 \times 9 = 72$
Case-2
The number of cases for the first digit will remain the same.
In this case we consider the second digit will be $1$.
If the second digit will be $1$ then there is no constraint for the third digit.
It means for the third digit there will be $10$ possibilities.
Hence, in this case the total codes will be $8 \times 10 = 80$
There will be no further cases.
Therefore, the total number possibilities will be the sum of both the cases.
Hence, $80 + 72 = 152$ different codes are possible.
Therefore, option (B) is correct.
Note:
In these types of questions the constraints define the possibilities. Analyse the constraint given in the question and then make cases according to them and don’t forget to add the total number of each case.
Complete step-by-step answer:
We are given that a three-digit number for certain locks uses the digits $0,1,2,3,4,5,6,7,8,9$.
There are some constraints in the question.
We solve our problem by making the cases.
Case-1
We are given that first digits cannot be $0$or $1$ it means the possible cases for first digit will be $8$
The second digit must be $0$ or $1$
In this case we consider the second digit will be $0$.
For the third digit the condition is that second and third digits cannot be $0$in the same code.
It means in this case no $0$ for the third digit.
Therefore, for the third digit there will be $9$ possibilities.
Hence, in this case the total codes will be $8 \times 9 = 72$
Case-2
The number of cases for the first digit will remain the same.
In this case we consider the second digit will be $1$.
If the second digit will be $1$ then there is no constraint for the third digit.
It means for the third digit there will be $10$ possibilities.
Hence, in this case the total codes will be $8 \times 10 = 80$
There will be no further cases.
Therefore, the total number possibilities will be the sum of both the cases.
Hence, $80 + 72 = 152$ different codes are possible.
Therefore, option (B) is correct.
Note:
In these types of questions the constraints define the possibilities. Analyse the constraint given in the question and then make cases according to them and don’t forget to add the total number of each case.
Recently Updated Pages
Master Class 12 Business Studies: Engaging Questions & Answers for Success

Master Class 12 Economics: Engaging Questions & Answers for Success

Master Class 12 English: Engaging Questions & Answers for Success

Master Class 12 Maths: Engaging Questions & Answers for Success

Master Class 12 Social Science: Engaging Questions & Answers for Success

Master Class 12 Chemistry: Engaging Questions & Answers for Success

Trending doubts
What is meant by exothermic and endothermic reactions class 11 chemistry CBSE

Which animal has three hearts class 11 biology CBSE

10 examples of friction in our daily life

One Metric ton is equal to kg A 10000 B 1000 C 100 class 11 physics CBSE

1 Quintal is equal to a 110 kg b 10 kg c 100kg d 1000 class 11 physics CBSE

Difference Between Prokaryotic Cells and Eukaryotic Cells

