MAC address format

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

MAC address format

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which is a correctly formatted MAC address?
A 00:1A:2B:3C:4D:5E
B 00:1A:2B:3C:4D
2. How many bits are in a MAC address?
A 32 bits
B 48 bits
3. How many hex digits are in each pair of a MAC address?
A Two hex digits per pair
B Three hex digits per pair
4. Which separators can be used in a MAC address?
A Colons (:) or hyphens (-)
B Full stops (.) or colons (:)
5. Which MAC address is written correctly using hyphens?
A 00-1A-2B-3C-4D-5E-6F
B 00-1A-2B-3C-4D-5E

Match the Pairs

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

Left columnRight column
100:1A:2B:3C:4D:5E AA MAC address written as six pairs of hex digits separated by colons
200-1A-2B-3C-4D-5E B3C
3Each pair in a MAC address is two hex digits, so it can range from 00 to FF CG is not a hex digit. Hex digits are only 0 to 9 and A to F, so the last pair is invalid.
4A MAC address has six pairs of two hex digits, which is 6 x 8 = 48 bits in total DThe same kind of MAC address written with hyphens as separators instead of colons
500:1A:2B:3C:4D EOnly five pairs are shown. A MAC address needs six pairs of hex digits (48 bits), so one pair is missing.
600:1A:2B:3C:4D:5G FA4:5E:60:D2:19:7B

Definitions

00:1A:2B:3C:4D:5E

Fill in the Blanks

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

1.
A MAC address has _ pairs of hex digits.
2.
Each pair in a MAC address has _ hex digits.
3.
A MAC address is __ bits in total.
4.
00_1A-2B-3C-4D-5E
5.
6 pairs x _ bits per pair = 48 bits

Spot the Error

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

Question 1
A mac = "00:1A:2B:3C:4D:5E"
B pairs = mac.split("-")
C print(len(pairs))
Question 2
A pairs = 8
B per_pair = 2
C total = pairs * per_pair
D print(total)
Question 3
A pairs = 6
B digits = pairs * 2
C bits = digits * 4
D print("Bits:", digits)
Question 4
A mac = "00-1A-2B-3C-4D-5E"
B ok = len(mac) == 12
C print(ok)
Question 5
A mac = "A4-C3-F0-85-12"
B parts = mac.split("-")
C print(parts[0])

Answer Key

MAC address format
Section A: Quick Questions
Q1
A — 00:1A:2B:3C:4D:5E
Q2
B — 48 bits
Q3
A — Two hex digits per pair
Q4
A — Colons (:) or hyphens (-)
Q5
B — 00-1A-2B-3C-4D-5E
Section B: Match the Pairs
Q1
00:1A:2B:3C:4D:5E → A MAC address written as six pairs of hex digits separated by colons
Q2
00-1A-2B-3C-4D-5E → The same kind of MAC address written with hyphens as separators instead of colons
Q3
Each pair in a MAC address is two hex digits, so it can range from 00 to FF → 3C
Q4
A MAC address has six pairs of two hex digits, which is 6 x 8 = 48 bits in total → A4:5E:60:D2:19:7B
Q5
00:1A:2B:3C:4D → Only five pairs are shown. A MAC address needs six pairs of hex digits (48 bits), so one pair is missing.
Q6
00:1A:2B:3C:4D:5G → G is not a hex digit. Hex digits are only 0 to 9 and A to F, so the last pair is invalid.
Section C: Definitions
Q1
00:1A:2B:3C:4D:5E — A MAC address is six pairs of hex digits (two digits per pair, 48 bits in total), separated by colons or hyphens, such as 00:1A:2B:3C:4D:5E.
Section D: Fill in the Blanks
Q1
A MAC address has 6 pairs of hex digits.
Q2
Each pair in a MAC address has 2 hex digits.
Q3
A MAC address is 48 bits in total.
Q4
00-1A-2B-3C-4D-5E
Q5
6 pairs x 8 bits per pair = 48 bits
Section E: Spot the Error
Q1
B — This MAC address uses colons as separators, so it must be split on ":". Splitting on "-" would leave the whole address as one piece. It should be pairs = mac.split(":").
Q2
A — A MAC address has six pairs of hex digits, not eight. It should be pairs = 6, which gives 12 hex digits in total.
Q3
D — The program should print the number of bits (48), not the number of hex digits (12). It should be print("Bits:", bits).
Q4
B — The text has 12 hex digits plus 5 hyphen separators, so its length is 17, not 12. It should be ok = len(mac) == 17.
Q5
A — This MAC address has only five pairs. A valid MAC address needs six pairs of hex digits, so a sixth pair such as -9B is missing.