← QCE Digital Solutions Unit 4

Broadcasting data packets

Sending the same data packets from one source to many receivers at once, instead of a separate unicast copy for each, which saves network bandwidth.

Understanding Broadcasting data packets in QCE Digital Solutions Unit 4

What it does: A single send call that reaches every receiver at once shows the one-to-many idea of broadcasting. The loop sends the stream again for every viewer, so the source sends as many copies as there are receivers. This is unicast, not broadcast.

Common mistakes: A single = is needed to assign a value. == compares values, so receivers would never be set. It should be receivers = 50. The send call is missing its closing bracket. It should be send(ALL, packet), which sends one packet to every receiver.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 89–125) and word search (Modules 17–125).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Which describes broadcasting data packets?
One source sends packets to a single chosen receiver onlyOne source sends the same packets to many receivers at once
Matches
A live match is sent to 500 viewers using 500 unicast copies to save bandwidth
↓
Unicast does not save bandwidth. It sends 500 separate copies. Broadcasting sends the same packets once to all viewers, which saves bandwidth.
Applying
Meanings
Term
broadcast
Meaning
Sending the same data packets from one source to many receivers at once, instead of a separate unicast copy for each, which saves network bandwidth.
Practice
viewers ← 500
Testing
Gaps
(packet) # one copy reaches all
Check Answer
Spots
1packets = 10
2receivers == 50

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Void Whale' badge — Definition Drifter, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Which describes broadcasting data packets?
A. One source sends packets to a single chosen receiver only
B. One source sends the same packets to many receivers at once ✓
Broadcasting is one-to-many. Sending to a single receiver is called unicast.
2. A school streams a live assembly to 500 student laptops. Which method uses less bandwidth on the source's connection?
A. Broadcast: one stream of packets for everyone ✓
B. Unicast: a separate copy of the stream for each laptop
With unicast the source sends 500 copies. Broadcasting sends one stream that all receivers can pick up, which saves network bandwidth.
3. Which statement about unicast is correct?
A. All receivers share one copy of the packets sent once
B. Each receiver gets its own separate copy of the packets ✓
Unicast is one-to-one. Sharing one copy among many receivers is what broadcasting does.
4. What is the main network benefit of broadcasting the same data to many devices?
A. It reduces the number of packets sent, so network efficiency improves ✓
B. It encrypts every packet so only one device can read it
Broadcasting is about efficiency. Sending the data once instead of many times saves bandwidth. It does not encrypt anything.
5. A server must send a personal bank statement to one customer. Which method suits this better?
A. Unicast, because the data is for one receiver only ✓
B. Broadcast, because every device should receive the statement
Private data meant for one person should be unicast. Broadcasting delivers the same packets to many receivers.

Match the Pairs

broadcast → Sends the same data packets from one source to many receivers at once
unicast → Sends a separate copy of the data to each individual receiver
Broadcasting is one-to-many: one source sends one stream to all receivers → send_to_all(stream)
Unicast needs a separate copy of the data for each receiver → for viewer in viewers: send(viewer, stream)
A live match is sent to 500 viewers using 500 unicast copies to save bandwidth → Unicast does not save bandwidth. It sends 500 separate copies. Broadcasting sends the same packets once to all viewers, which saves bandwidth.
Broadcasting is used to send a private message to one person only → Broadcasting is one-to-many, so everyone receives the packets. A message for only one receiver should be sent by unicast.

Key Term

broadcast
Sending the same data packets from one source to many receivers at once, instead of a separate unicast copy for each, which saves network bandwidth.

Fill in the Blanks

1. broadcast(packet) # one copy reaches all
Hint: Type the function name that sends one packet to every receiver at once.
2. for device in devices: unicast(device, packet)
Hint: Type the keyword that repeats the send once for each receiver.
3. unicast(laptop, packet) unicast(phone, packet) unicast(tablet, packet)
Hint: Type the function name that sends a separate copy to just one receiver.
4. unicastCopies = len(devices) broadcastCopies = 1
Hint: Type the built-in function that counts how many receivers are in the list.
5. if broadcastCopies < unicastCopies: print("Less bandwidth used")
Hint: Type the comparison operator meaning 'fewer than'.

Spot the Error

Question 1
A packets = 10
B receivers == 50
C unicast = packets * receivers
D broadcast = packets
E print(unicast, broadcast)
Line B — A single = is needed to assign a value. == compares values, so receivers would never be set. It should be receivers = 50.
Question 2
A def broadcast(packet):
B send(ALL, packet
C return 1
Line B — The send call is missing its closing bracket. It should be send(ALL, packet), which sends one packet to every receiver.
Question 3
A define one_to_many(src, dst):
B ok = src == 1 and dst > 1
C return ok
Line A — Functions are declared with the keyword def, not define. The line should be def one_to_many(src, dst):.
Question 4
A sources = 30
B receivers = 30
C print("one-to-many")
D print(sources, receivers)
Line A — Broadcasting is one-to-many, so there is only one source sending the packets. It should be sources = 1.
Question 5
A receivers = 20
B copies = receivers
C total = copies * 8
D print(total)
Line B — Broadcast sends one copy that all receivers share. Giving every receiver its own copy describes unicast. It should be copies = 1.

Student with a class code? Join your class →