Hexadecimal digits 0 to 9 and A to F

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

Hexadecimal digits 0 to 9 and A to F

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What denary value does the hex digit B represent?
A 11
B 12
2. Which is the largest single hexadecimal digit?
A 9
B F (15)
3. Which of these is a valid hexadecimal digit?
A G
B E
4. How many different digits does hexadecimal use?
A 16
B 10
5. How many bits does one hex digit stand for?
A 4 bits (one nibble)
B 8 bits (one byte)

Match the Pairs

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

Left columnRight column
1C AA is worth 10, not 11. B is 11. The letters start at 10 and go up in order to F=15.
2F = 1111 B0123456789ABCDEF
3Hexadecimal has 16 digits, counting from 0 to 9 and then A to F CG is not a hex digit. Hex stops at F=15, because it has only 16 digits (0 to 15).
4The letter D stands for 13 in hexadecimal DThe hex digit C, which stands for the denary value 12
5A = 11 EF is the largest single hex digit: denary 15, which fills one 4-bit value
6G = 16 FD = 13

Definitions

0123456789ABCDEF

Fill in the Blanks

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

1.
Hex digit A = __ in denary
2.
The largest single hex digit is _
3.
Denary 13 is written as hex digit _
4.
Hex digit F = ____ in 4-bit binary
5.
Each hex digit stands for _ bits (a nibble)

Spot the Error

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

Question 1
A A = 10
B B = 11
C C = 13
D D = 13
Question 2
A F = 16
B E = 14
C D = 13
Question 3
A h = "0123456789ABCDEF"
B print(h[11]) # A
C print(h[15]) # F
Question 4
A # each hex digit = 4 bits
B A = 1001
C F = 1111
Question 5
A 0 = 0000
B 9 = 1010
C F = 1111

Answer Key

Hexadecimal digits 0 to 9 and A to F
Section A: Quick Questions
Q1
A — 11
Q2
B — F (15)
Q3
B — E
Q4
A — 16
Q5
A — 4 bits (one nibble)
Section B: Match the Pairs
Q1
C → The hex digit C, which stands for the denary value 12
Q2
F = 1111 → F is the largest single hex digit: denary 15, which fills one 4-bit value
Q3
Hexadecimal has 16 digits, counting from 0 to 9 and then A to F → 0123456789ABCDEF
Q4
The letter D stands for 13 in hexadecimal → D = 13
Q5
A = 11 → A is worth 10, not 11. B is 11. The letters start at 10 and go up in order to F=15.
Q6
G = 16 → G is not a hex digit. Hex stops at F=15, because it has only 16 digits (0 to 15).
Section C: Definitions
Q1
0123456789ABCDEF — The 16 hex digits: 0-9, then A=10, B=11, C=12, D=13, E=14, F=15. Each digit stands for one 4-bit value, and F (15) is the largest single hex digit.
Section D: Fill in the Blanks
Q1
Hex digit A = 10 in denary
Q2
The largest single hex digit is F
Q3
Denary 13 is written as hex digit D
Q4
Hex digit F = 1111 in 4-bit binary
Q5
Each hex digit stands for 4 bits (a nibble)
Section E: Spot the Error
Q1
C — In hexadecimal C stands for 12, not 13. D is 13. The letters go A=10, B=11, C=12, D=13, E=14, F=15.
Q2
A — F is worth 15. Hex has 16 digits but they run from 0 to 15, so no single hex digit is worth 16.
Q3
B — Counting from 0, h[10] is A. h[11] is B, so the index should be 10 to match the comment.
Q4
B — A is 10 in denary, which is 1010 in binary. 1001 is 9.
Q5
B — 9 is 1001 in 4-bit binary (8 + 1). 1010 is 10, which is the hex digit A.