wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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

A
280
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
290
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
286
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
296
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C 286
Number of variable names if only alphabet is used is 26.
Now, if every alphabet is followed by decimal digit, then Number of variable names are 26×10=260

Hence, total number of different variable names possible are
26+260=286

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
Join BYJU'S Learning Program
CrossIcon