Skip to main content

Permutations MCQ: A variable name in certain computer language must…

JEE · Mathematics · Permutations

1 Medium +4 | -1 Application
A variable name in 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
View answer and explanation
Correct option: C
286
Option C (286) is correct because it correctly calculates the total number of variable names by considering alphabets and alphabets followed by digits.
Solution approach
  1. Correct Answer + Core Reason: 286. The total number of variable names is calculated by considering alphabets and alphabets followed by digits.

    Step-by-Step Solution:

    Step 1: Variable names that are just alphabets: There are 26 alphabets in the English language. So, there are 26 possible variable names that are just alphabets.

    Step 2: Variable names that are an alphabet followed by a decimal digit: There are 26 choices for the alphabet and 10 choices for the digit (0 to 9). So, there are 26×10=26026 \times 10 = 260 possible variable names that are an alphabet followed by a digit.

    Step 3: Total number of variable names: Add the number of variable names from Step 1 and Step 2: 26+260=28626 + 260 = 286.

    Why other options are wrong:
    - Option A (280): This is incorrect and doesn't follow the correct method of calculating the total number of variable names.
    - Option B (290): This is incorrect and doesn't follow the correct method of calculating the total number of variable names.
    - Option D (296): This is incorrect and doesn't follow the correct method of calculating the total number of variable names.

    Key Concepts:
    - Counting

    Memory Aids:
    - Remember to consider both cases: alphabets and alphabets followed by digits.

    Quick Tips:
    - Break the problem into smaller parts and then add the results.

More Questions from Permutations

Practice all chapter MCQs →
Type at least 2 characters or jump directly:

Save your learning progress

Sign in with a free account to save your practice answers and quiz results, then return to them when you revise.

Scan to install TopAll Pro

Point your Android or iPhone camera at this code to open TopAll Pro. Try 2 chapters and 25 AI credits free first.

Question image

Use + and − to zoom, arrow keys or drag to pan, Escape to close.