Why compression is needed: less bandwidth

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

Why compression is needed: less bandwidth

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Why does compressing a file use less bandwidth when it is sent over a network?
A Fewer bits have to be sent
B The bits travel faster along the cable
2. Ten students in a school share one internet connection. Which statement is true?
A Each student gets their own separate bandwidth that others cannot use
B Bandwidth is shared, so smaller files leave more for everyone
3. A video is compressed before it is streamed. What is the benefit?
A It uses less bandwidth, so it is less likely to buffer
B It uses more bandwidth, so the picture is sharper
4. Which is the best description of network congestion?
A A file being compressed to a smaller size
B Too much data trying to use the network at once
5. What effect does compressing many files have on network congestion?
A It reduces congestion
B It increases congestion

Match the Pairs

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

Left columnRight column
1compression saves bandwidth ACompression reduces the number of bits in a file. Fewer bits use less bandwidth, not more.
2bandwidth BBandwidth is shared between users. A compressed file uses less of it and leaves more for others, reducing congestion.
3A video is compressed before streaming, so fewer bits are sent and it plays smoothly without buffering Csend(compress(file))
4Compressing files before sending them means less congestion because many users share the same network DThe amount of data that can be sent over a network connection in a given time, shared between all the users.
5Compression makes a file bigger, so it needs more bandwidth to send Estream(compress(video))
6Only one user can use the bandwidth, so compression has no effect on other users FA compressed file has fewer bits to send, so it uses less of the shared network bandwidth.

Definitions

compression saves bandwidth

Fill in the Blanks

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

1.
A compressed file has fewer ____ to send
2.
Bandwidth is ______ between network users
3.
Less data sent means less __________
4.
Streaming video and audio use ___________ so they play without buffering
5.
A compressed file uses ____ bandwidth

Spot the Error

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

Question 1
A IF compressed = TRUE
B bits_sent ← 4000000
C ELSE
D bits_sent ← 8000000
E ENDIF
Question 2
A bandwidth ← 2000000
B size_bits ← 8000000
C IF compressed THEN
D size_bits ← size_bits * 2
E ENDIF
F OUTPUT size_bits / bandwidth
Question 3
A video_bits ← 5000000
B bandwidth ← 2000000
C IF video_bits > bandwidth THEN
D OUTPUT "Video plays"
E ELSE
F OUTPUT "Video plays"
Question 4
A bandwidth ← 100 // Mbps, 4 users
B share ← bandwidth * 4
C OUTPUT share
Question 5
A WHILE streaming = FALSE
B chunk ← compress(chunk)
C SEND chunk
D ENDWHILE

Answer Key

Why compression is needed: less bandwidth
Section A: Quick Questions
Q1
A — Fewer bits have to be sent
Q2
B — Bandwidth is shared, so smaller files leave more for everyone
Q3
A — It uses less bandwidth, so it is less likely to buffer
Q4
B — Too much data trying to use the network at once
Q5
A — It reduces congestion
Section B: Match the Pairs
Q1
compression saves bandwidth → A compressed file has fewer bits to send, so it uses less of the shared network bandwidth.
Q2
bandwidth → The amount of data that can be sent over a network connection in a given time, shared between all the users.
Q3
A video is compressed before streaming, so fewer bits are sent and it plays smoothly without buffering → stream(compress(video))
Q4
Compressing files before sending them means less congestion because many users share the same network → send(compress(file))
Q5
Compression makes a file bigger, so it needs more bandwidth to send → Compression reduces the number of bits in a file. Fewer bits use less bandwidth, not more.
Q6
Only one user can use the bandwidth, so compression has no effect on other users → Bandwidth is shared between users. A compressed file uses less of it and leaves more for others, reducing congestion.
Section C: Definitions
Q1
compression saves bandwidth — A compressed file has fewer bits to send, so it uses less of the shared network bandwidth. This eases congestion and helps video and audio stream smoothly.
Section D: Fill in the Blanks
Q1
A compressed file has fewer bits to send
Q2
Bandwidth is shared between network users
Q3
Less data sent means less congestion
Q4
Streaming video and audio use compression so they play without buffering
Q5
A compressed file uses less bandwidth
Section E: Spot the Error
Q1
A — An IF statement needs THEN after the condition. The line should be IF compressed = TRUE THEN.
Q2
D — Compression should make the file smaller, so the bits to send must be divided, not multiplied. It should be size_bits ← size_bits / 2.
Q3
D — If the video needs more bits than the bandwidth can carry, it will buffer. The output should be "Video buffers".
Q4
B — Bandwidth is shared between users, so each user gets the total divided by the number of users. It should be share ← bandwidth / 4.
Q5
A — The loop must keep compressing and sending while the video is streaming. The condition should be streaming = TRUE.