
A variable name for a certain computer language must be either an alphabet or an alphabet followed by a decimal digit. The total number of different variable names that can exist in that language is equal to.
Answer
593.4k+ views
Hint: The formula for determining the number of possible arrangements by selecting only a few objects from a set with no repetition is expressed in the following way:
\[{}^n{C_r} = \dfrac{{n!}}{{r!(n - r)!}}\]
\[N = \]the total number of elements in a set
\[K = \] The number of selected objects (the order of the objects is not important)
\[! = factorial\]
Complete step by step solution:
The variable name consists only of a letter, then that letter can be chosen in 26 ways from the alphabets.
If the code is created using a letter followed by a digit, then code can be created in
\[{}^{26}{C_1} \times {}^{10}{C_1}\]
These two events are independent
Now,
Above combination can be done in only one way.
\[1! = 1\]
\[ \Rightarrow \dfrac{{26!}}{{1!(26 - 1)!}} \times \dfrac{{10!}}{{1!(10 - 1)!}} \times 1\] \[\left[ {{}^n{C_r} = \dfrac{{n!}}{{r!(n - r)!}}} \right]\]
\[ \Rightarrow \dfrac{{26.25!}}{{25!}} \times \dfrac{{10.9!}}{{9!}}\] \[\left[ \begin{gathered}
n = 26 \\
r = 1 \\
\end{gathered} \right]\]
\[ \Rightarrow 26 \times 10\]
\[ \Rightarrow 260\]
Hence
Total number of different variable names that can exist in that language is
\[ = 26 + 260\]
\[ = 286\]
Note:
\[10! = 1 \times 2 \times 3 \times 4 \times 5 \times 6 \times 7 \times 8 \times 9 \times 10\]
So, it can be writing as
\[10! = 9!\, \times 10\]
1)(Remember)\[1! = 1\]
2) In the above question, it is fixed followed by a decimal digit, So the rotation can be done by only 1 way.
\[{}^n{C_r} = \dfrac{{n!}}{{r!(n - r)!}}\]
\[N = \]the total number of elements in a set
\[K = \] The number of selected objects (the order of the objects is not important)
\[! = factorial\]
Complete step by step solution:
The variable name consists only of a letter, then that letter can be chosen in 26 ways from the alphabets.
If the code is created using a letter followed by a digit, then code can be created in
\[{}^{26}{C_1} \times {}^{10}{C_1}\]
These two events are independent
Now,
Above combination can be done in only one way.
\[1! = 1\]
\[ \Rightarrow \dfrac{{26!}}{{1!(26 - 1)!}} \times \dfrac{{10!}}{{1!(10 - 1)!}} \times 1\] \[\left[ {{}^n{C_r} = \dfrac{{n!}}{{r!(n - r)!}}} \right]\]
\[ \Rightarrow \dfrac{{26.25!}}{{25!}} \times \dfrac{{10.9!}}{{9!}}\] \[\left[ \begin{gathered}
n = 26 \\
r = 1 \\
\end{gathered} \right]\]
\[ \Rightarrow 26 \times 10\]
\[ \Rightarrow 260\]
Hence
Total number of different variable names that can exist in that language is
\[ = 26 + 260\]
\[ = 286\]
Note:
\[10! = 1 \times 2 \times 3 \times 4 \times 5 \times 6 \times 7 \times 8 \times 9 \times 10\]
So, it can be writing as
\[10! = 9!\, \times 10\]
1)(Remember)\[1! = 1\]
2) In the above question, it is fixed followed by a decimal digit, So the rotation can be done by only 1 way.
Recently Updated Pages
Master Class 10 Computer Science: Engaging Questions & Answers for Success

Master Class 10 General Knowledge: Engaging Questions & Answers for Success

Master Class 10 English: Engaging Questions & Answers for Success

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

Master Class 10 Maths: Engaging Questions & Answers for Success

Master Class 10 Science: Engaging Questions & Answers for Success

Trending doubts
What is the median of the first 10 natural numbers class 10 maths CBSE

Which women's tennis player has 24 Grand Slam singles titles?

Who is the Brand Ambassador of Incredible India?

Why is there a time difference of about 5 hours between class 10 social science CBSE

Write a letter to the principal requesting him to grant class 10 english CBSE

A moving boat is observed from the top of a 150 m high class 10 maths CBSE

