Looking up characters in the ASCII table

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Looking up characters in the ASCII table

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What is the ASCII code for the capital letter A?
A 65
B 97
2. Capital C has the ASCII code 67. What is the code for lowercase c?
A 99
B 35
3. What is the ASCII code for the digit character '5'?
A 53
B 5
4. Which ASCII code is the space character?
A 0
B 32
5. Which codes spell the word CAT in capitals?
A 99 97 116
B 67 65 84

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1A = 65, B = 66, C = 67 A01000001
2a = 97 BIn the ASCII table, capital letters have consecutive codes starting at 65
3The space character has its own ASCII code, so it can be stored like any other character CThe ASCII code for lowercase a, which is 32 more than capital A (65)
4The letter A (code 65) written as an 8-bit binary number DLowercase a should be 97, not 98. Lowercase is 32 more than the capital, so 65 + 32 = 97.
5A = 65, a = 98 EThe digit character '5' is text with its own code, 53. It is not the number 5. The digit '0' has code 48, so '5' is 48 + 5 = 53.
6The digit character '5' has the ASCII code 5 Fspace = 32

Definitions

ASCII

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
ASCII: A = __, B = 66, C = 67
2.
a = 97, so A = 97 - __ = 65
3.
The ASCII code for a space is __
4.
'0' = __, '1' = 49, '2' = 50
5.
A = 65 = ________ in 8-bit binary

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A A = 65
B B = 66
C C = 76
D D = 68
Question 2
A capital ← 65
B lower ← capital - 32
C PRINT lower
Question 3
A 'B' has code 66
B add 32 to get lowercase
C 66 + 32 = 98
D 'b' has code 97
Question 4
A '0' = 0
B '1' = 49
C '2' = 50
Question 5
A ' ' = 0
B 'A' = 65
C 'a' = 97

Answer Key

Looking up characters in the ASCII table
Section A: Quick Questions
Q1
A — 65
Q2
A — 99
Q3
A — 53
Q4
B — 32
Q5
B — 67 65 84
Section B: Match the Pairs
Q1
A = 65, B = 66, C = 67 → In the ASCII table, capital letters have consecutive codes starting at 65
Q2
a = 97 → The ASCII code for lowercase a, which is 32 more than capital A (65)
Q3
The space character has its own ASCII code, so it can be stored like any other character → space = 32
Q4
The letter A (code 65) written as an 8-bit binary number → 01000001
Q5
A = 65, a = 98 → Lowercase a should be 97, not 98. Lowercase is 32 more than the capital, so 65 + 32 = 97.
Q6
The digit character '5' has the ASCII code 5 → The digit character '5' is text with its own code, 53. It is not the number 5. The digit '0' has code 48, so '5' is 48 + 5 = 53.
Section C: Definitions
Q1
ASCII — A standard table that gives every character a number, such as A = 65 and a = 97, so computers can store text as binary. Lowercase codes are 32 more than capitals.
Section D: Fill in the Blanks
Q1
ASCII: A = 65, B = 66, C = 67
Q2
a = 97, so A = 97 - 32 = 65
Q3
The ASCII code for a space is 32
Q4
'0' = 48, '1' = 49, '2' = 50
Q5
A = 65 = 01000001 in 8-bit binary
Section E: Spot the Error
Q1
C — In ASCII the capital letters count up one at a time from A = 65. So B = 66 and C = 67, not 76.
Q2
B — Lowercase codes are 32 MORE than capital codes, so you add 32. 65 + 32 = 97, which is a.
Q3
D — B is 66, and adding 32 gives 98 for lowercase b. The code 97 belongs to a.
Q4
A — The digit character '0' is text, so ASCII gives it its own code, 48. It is not the number 0.
Q5
A — The space character is a real character with its own ASCII code, 32. It is not 0.