Question Detail

COM 101 Information Representation & Computer Number System Objective Question

Question

In ASCII, the digit '0' has the code __________.
Options
A 48
Correct Answer
B 49
C 0
D 32
Correct Answer

Option A is the correct answer.

Detailed Explanation

ASCII digits '0' through '9' have codes 48 through 57. This allows easy conversion between digit characters and their numeric values by subtracting 48.

Hint

Digits start at this code, with '1'=49, '2'=50, etc.

Question Info