The worksheetDownload the PDF
Answers

F10.1 What is a network?

Networks · GCSE · OCR J277 1.3.1, AQA 8525 3.5, Edexcel 1CP2 4.1.1 · about 15 min

BugBotLab

What this lesson is about

Why networks, LAN, WAN and PAN, client-server and peer-to-peer.

Questions 6 marks in all

  1. [1 mark]Which is a characteristic of a LAN?

    1. AIt covers a small area and the hardware is owned by the organisation
    2. BIt covers a country and uses rented connections
    3. CIt always uses wireless connections
    4. DIt needs the internet to work
    Answer: A. A WAN covers a large area and usually uses infrastructure owned by others.
  2. [1 mark]What is the biggest WAN?

    1. AThe internet
    2. BA school network
    3. CA Bluetooth headset
    4. DA home Wi-Fi network
    Answer: A. The internet is a network of networks across the world.
  3. [1 mark]Which is a disadvantage of a network?

    1. AMalware can spread from one computer to others
    2. BFiles can be shared
    3. CPrinters can be shared
    4. DBackups can be made centrally
    Answer: A. The others are advantages.
  4. [1 mark]In a client-server network, what does a server do?

    1. AProvides a service, such as files or web pages, that clients request
    2. BAsks other computers for files
    3. COnly connects devices together
    4. DShares its files equally with every other device
    Answer: A. Clients request; servers provide.
  5. [1 mark]Which is an advantage of peer-to-peer over client-server?

    1. AIt is cheap and easy to set up, with no server needed
    2. BBackups are made in one place
    3. CSecurity is managed centrally
    4. DIt is easier to manage as it grows
    Answer: A. The others are advantages of client-server.
  6. [1 mark]A phone, earbuds and a smartwatch connected by Bluetooth form which kind of network?

    1. APAN
    2. BLAN
    3. CWAN
    4. DClient-server
    Answer: A. A personal area network covers the devices around one person.

The task: roll call

Send who is on the network?. Listen for 1.5 seconds and, for each reply, print found <name> using the name the reply gives after here: . Then print devices on the network: <n>, counting the devices you found.

# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()

The hint students can ask for: Send the question, then keep checking for messages for a second or so. Each reply carries a name after a label: split it off, print it and collect it. The count is how many you collected.

A solution

from bugbot import *
connect()
send("who is on the network?")
found = []
for tick in range(15):
    wait(0.1)
    for sender, text in messages():
        if text.startswith("here: "):
            name = text.split("here: ")[1]
            found.append(name)
            print("found", name)
print("devices on the network:", len(found))

Any program that meets the task's checks is marked correct in the simulator; this is one way, not the only way.