Networks · GCSE · OCR J277 1.3.1, AQA 8525 3.5, Edexcel 1CP2 4.1.1 · about 15 min
Why networks, LAN, WAN and PAN, client-server and peer-to-peer.
[1 mark]Which is a characteristic of a LAN?
[1 mark]What is the biggest WAN?
[1 mark]Which is a disadvantage of a network?
[1 mark]In a client-server network, what does a server do?
[1 mark]Which is an advantage of peer-to-peer over client-server?
[1 mark]A phone, earbuds and a smartwatch connected by Bluetooth form which kind of network?
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.
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.