Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Course:
Topics:
OCR GCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Systems architecture
Unit 2
Memory and storage
Unit 3
Computer networks, connections and protocols
Unit 4
Network security
Unit 5
Systems software
Unit 6
Ethical, legal, cultural and environmental impacts of digital technology
Avg
score:
–
Topics
done:
0/34

IP addressing and MAC addressing

Practise 25 exam-style questions on IP addressing and MAC addressing for OCR GCSE Computer Science (Paper 1). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with the Study Helper on hand if you get stuck.

  • 25 questions
  • 1–6 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

Which one of these is a valid MAC address?

Choose your answer.

  • 192.168.0.15
  • fe80::1a2b:3c4d
  • 00:1A:2B:3C:4D
  • 00:1A:2B:3C:4D:5E

Model answer

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

Explanation

A MAC address is 48 bits, written as 12 hexadecimal digits in six pairs separated by colons or hyphens. 00:1A:2B:3C:4D looks similar but has only five pairs, so it is too short. The other two options are an IPv4 address (four denary numbers) and an IPv6 address (hex groups with ::).

Mark scheme
  1. 1 mark

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

    If more than one option is given, 0 marks. 192.168.0.15 is an IPv4 address; fe80::1a2b:3c4d is an IPv6 address; 00:1A:2B:3C:4D has only five pairs (40 bits).

Question 2

2 marks

This IPv6 address is written in full:

fd3c:0a12:0000:0000:0000:00e5:7b00:0004

Write the address in its shortest form.

Model answer

fd3c:a12::e5:7b00:4

Explanation

First remove the leading zeros in each group: 0a12 becomes a12, 00e5 becomes e5 and 0004 becomes 4, but 7b00 stays the same because its zeros are at the end. Then replace the run of three 0000 groups with ::. A common mistake is to remove zeros from the end of a group, which changes the address.

Mark scheme
  1. 1 mark

    Leading zeros removed from each group: a12, e5 and 4 (with 7b00 unchanged)

    Do not award if 7b00 is shortened (e.g. to 7b) - only leading zeros can be left out.

  2. 1 mark

    The three consecutive 0000 groups replaced by :: (fd3c:a12::e5:7b00:4)

    The answer fd3c:a12::e5:7b00:4 scores both marks. Accept upper-case letters. fd3c:a12:0:0:0:e5:7b00:4 scores MS1 only; fd3c:0a12::00e5:7b00:0004 scores MS2 only.

Question 3

3 marks

Isla's printer shows its IPv4 address on its display screen:

192.168.20.14

Describe the format of an IPv4 address.

Model answer

An IPv4 address is made of four numbers separated by full stops. Each number is a denary number from 0 to 255, because it is stored in 8 bits, so the whole address is 32 bits long.

Explanation

The printer's address 192.168.20.14 shows the pattern: four denary numbers, each 0-255, with full stops between them. Each part is one byte (8 bits), which is why it cannot go above 255, and the whole address is 32 bits. Describing the format means describing this pattern, not just copying the example.

Mark scheme
  1. 1 mark

    Four numbers/parts (groups)

  2. 1 mark

    Separated by full stops/dots

  3. 1 mark

    Each number is denary, from 0 to 255

    Accept 'decimal' for denary.

  4. 1 mark

    32 bits (4 bytes) in total // each part is 8 bits (1 byte)

    max 3. '32 bits' and 'each part is 8 bits' are the same point (MS4). 'Numbers separated by dots' scores MS2 only unless the number of parts is also given.

Question 4

4 marks

Every device on a network has both an IP address and a MAC address.

Compare IP addresses and MAC addresses.

Model answer

A MAC address is given to a device's network interface card by the manufacturer and does not normally change, whereas an IP address is given by the network the device joins and can change if it moves to another network. MAC addresses are used by switches to send data to the right device within a LAN, whereas IP addresses are used by routers to send data between networks and across the Internet. A MAC address is 48 bits, written as six pairs of hex digits such as 3C:5A:B4:12:9F:0E, whereas an IPv4 address is 32 bits, written as four denary numbers from 0 to 255 such as 192.168.10.25.

Explanation

A good way to remember the difference: the MAC address is like a person's name (it stays with the hardware), while the IP address is like their postal address (it depends on where they are). In a 'Compare' question, each point should mention both addresses, using words such as 'whereas'. Remember the key rule of this topic: switches use MAC addresses within a LAN, and routers use IP addresses between networks.

Mark scheme
  1. 1 mark

    An IP address identifies a device's location on a network/the Internet, whereas a MAC address identifies the device's network hardware (NIC) itself

  2. 1 mark

    IP addresses are used (by routers) to route data between networks/across the Internet, whereas MAC addresses are used (by switches) to send data to the right device within a LAN

  3. 1 mark

    A MAC address is assigned by the manufacturer and does not normally change, whereas an IP address is assigned by the network and can change (e.g. when the device joins a different network)

    Students do not need the terms static/dynamic; ignore them.

  4. 1 mark

    Size: a MAC address is 48 bits, whereas an IPv4 address is 32 bits (and an IPv6 address 128 bits)

  5. 1 mark

    Written form: a MAC address is 12 hexadecimal digits in six pairs (separated by colons/hyphens), whereas an IPv4 address is four denary numbers (0-255) separated by full stops // an IPv6 address is eight groups of hexadecimal digits separated by colons

    Do not award MS4 and MS5 for the same statement: MS4 needs the number of bits, MS5 the written form.

  6. 1 mark

    Similarity: both identify a device so that data can be sent to it // both must be unique (on a network)

    max 4. Each point must compare the two (both types, or a clear contrast such as 'a MAC address never changes but an IP address can'). A fact about only one type scores 0.

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

Study Helper Hints first, answers after you try

Stuck on this one? Ask for a hint and I’ll point you in the right direction, without giving the answer away. Once you’ve checked your answer, I’ll show you how the marks are awarded.