IPv4 address format

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

IPv4 address format

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which is a correctly formatted IPv4 address?
A 190.0.5.20
B 190:0:5:20
2. How many bits are in an IPv4 address?
A 128 bits
B 32 bits
3. An IPv4 address is made up of...
A eight groups of 16 bits
B four groups of 8 bits
4. What is the range of each number in an IPv4 address?
A 0 to 255
B 0 to 256
5. Which character separates the numbers in an IPv4 address?
A A full stop (.)
B A comma (,)

Match the Pairs

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

Left columnRight column
1190.0.5.20 A192.168.1.10
2255 BCommas are used instead of full stops. IPv4 groups must be separated by full stops.
3An IPv4 address is four groups of 8 bits, which makes 32 bits in total CThe last group is 300, which is above 255. A group of 8 bits cannot go higher than 255.
4The four numbers in an IPv4 address are separated by full stops DA valid IPv4 address: four denary numbers, each from 0 to 255, separated by full stops
5192.168.1.300 EThe largest denary value one group of 8 bits can hold in an IPv4 address
6192,168,1,10 F4 x 8 = 32

Definitions

IPv4 address

Fill in the Blanks

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

1.
An IPv4 address is __ bits long in total.
2.
Each number in an IPv4 address is _ bits.
3.
An IPv4 address has _ numbers in it.
4.
Each IPv4 number is from 0 to ___.
5.
Example IPv4 address: 190_0.5.20

Spot the Error

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

Question 1
A IPv4 address: 190.0.5.20
B Number of groups: 6
C Bits in each group: 8
D Total bits: 32
Question 2
A address ← 172.16.254.1
B groups ← 4
C bitsPerGroup ← 8
D total ← groups + bitsPerGroup
Question 3
A ip ← 192.168.0.256
B highest ← 255
C lowest ← 0
Question 4
A ip ← 10.20.30.40
B groups ← 4
C maxGroup ← 255
D bitsPerGroup ← 16
Question 5
A ip ← 203,0,113,9
B separator ← full stop
C groups ← 4

Answer Key

IPv4 address format
Section A: Quick Questions
Q1
A — 190.0.5.20
Q2
B — 32 bits
Q3
B — four groups of 8 bits
Q4
A — 0 to 255
Q5
A — A full stop (.)
Section B: Match the Pairs
Q1
190.0.5.20 → A valid IPv4 address: four denary numbers, each from 0 to 255, separated by full stops
Q2
255 → The largest denary value one group of 8 bits can hold in an IPv4 address
Q3
An IPv4 address is four groups of 8 bits, which makes 32 bits in total → 4 x 8 = 32
Q4
The four numbers in an IPv4 address are separated by full stops → 192.168.1.10
Q5
192.168.1.300 → The last group is 300, which is above 255. A group of 8 bits cannot go higher than 255.
Q6
192,168,1,10 → Commas are used instead of full stops. IPv4 groups must be separated by full stops.
Section C: Definitions
Q1
IPv4 address — 32 bits written as four denary numbers from 0 to 255 separated by full stops, such as 190.0.5.20. Each number is a group of 8 bits.
Section D: Fill in the Blanks
Q1
An IPv4 address is 32 bits long in total.
Q2
Each number in an IPv4 address is 8 bits.
Q3
An IPv4 address has 4 numbers in it.
Q4
Each IPv4 number is from 0 to 255.
Q5
Example IPv4 address: 190.0.5.20
Section E: Spot the Error
Q1
B — An IPv4 address has four groups (numbers), not six. It should be 'Number of groups: 4'.
Q2
D — The total number of bits is found by multiplying 4 groups by 8 bits (4 * 8 = 32), not adding. It should be total ← groups * bitsPerGroup.
Q3
A — Each group in an IPv4 address can only be 0 to 255, so 256 is not allowed. The last group should be 255 or less.
Q4
D — Each group is 8 bits, which is why its largest value is 255. It should be bitsPerGroup ← 8.
Q5
A — The four numbers in an IPv4 address are separated by full stops, not commas. It should be 203.0.113.9.