Book 5 · Chapter 5
The internet and its uses
B5·5This chapter is in the ebook.
Read it in full on cswithzak.com. Every question has its mark scheme and every program is ready to run. The free practice for each section is below, with the short code the book prints beside it.
For the whole chapter
- Topic pageThe Internet and Its Uses
B5·5·T - QuizThe Internet and Its Uses
B5·5·Q1 - LabURL → web page walkthrough
B5·5·X1 - LabBlockchain demo
B5·5·X2 - LabEncryption & HTTPS
B5·5·X3
§5.1 The internet and the world wide web
Short code B5·5·1
- FlashcardsFlashcards §5.1: Internet, WWW, URLs & browsers
B5·5·F1 - Past-paper questionsPast-paper questions §5.1 (the-internet-and-the-world-wide-web)
B5·5·1
§5.2 Digital currency
Short code B5·5·2
- FlashcardsFlashcards §5.2: Digital currency & blockchain
B5·5·F2 - Past-paper questionsPast-paper questions §5.2 (digital-currency)
B5·5·2
§5.3 Cyber security
Short code B5·5·3
- FlashcardsFlashcards §5.3: Cyber security threats
B5·5·F3 - FlashcardsFlashcards §5.3: Cyber security solutions
B5·5·F4 - Past-paper questionsPast-paper questions §5.3 (cyber-security)
B5·5·3
The internet and the world wide web
Short code B5·5·10
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
URLs: the address of a web page
Short code B5·5·11
url = "https://www.crumbs-bakery.example/cakes/menu.html"
protocol, rest = url.split("://")
parts = rest.split("/")
print("Protocol:", protocol)
print("Domain name:", parts[0])
print("Path:", "/".join(parts[1:-1]))
print("File name:", parts[-1]):// after the protocol, then / between the domain name, the folders and the file name.Output
Protocol: https Domain name: www.crumbs-bakery.example Path: cakes File name: menu.html
HTTP and HTTPS
Short code B5·5·12
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
The web browser
Short code B5·5·13
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Finding a web page: the DNS
Short code B5·5·14
local_dns = {"www.school.example": "192.0.2.7"}
other_dns = {"www.crumbs-bakery.example": "192.0.2.15"}
name = "www.crumbs-bakery.example"
if name in local_dns:
ip = local_dns[name]
else:
print("Not found here: asking another DNS")
ip = other_dns[name]
print("IP address sent to the browser:", ip)Output
Not found here: asking another DNS IP address sent to the browser: 192.0.2.15
Cookies
Short code B5·5·15
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Digital currency
Short code B5·5·16
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Blockchain
Short code B5·5·17
Output
Block 1 | previous 00000000 | hash 96635438 Block 2 | previous 96635438 | hash 7790b4b1 Block 3 | previous 7790b4b1 | hash e5e34bc6 Block 2 changed: new hash 27500eef Block 3 still stores 7790b4b1 Chain valid? False
Threats: brute force and data interception
Short code B5·5·18
from itertools import product
secret = "CB"
attempt = 0
for letters in product("ABC", repeat=2):
guess = "".join(letters)
attempt = attempt + 1
print(attempt, guess, guess == secret)
if guess == secret:
breakOutput
1 AA False 2 AB False 3 AC False 4 BA False 5 BB False 6 BC False 7 CA False 8 CB True
for length in (4, 6, 8):
print(length, "digits:", 10 ** length, "PINs")
total = 62 ** 8
print("8 characters (a-z, A-Z, 0-9):", total)
print("Days at a million guesses a second:", total // 1000000 // 86400)Output
4 digits: 10000 PINs 6 digits: 1000000 PINs 8 digits: 100000000 PINs 8 characters (a-z, A-Z, 0-9): 218340105584896 Days at a million guesses a second: 2527
Threats: DDoS attacks and hacking
Short code B5·5·19
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Threats: malware
Short code B5·5·20
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Threats: phishing, pharming and social engineering
Short code B5·5·21
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Keeping data safe: people and passwords
Short code B5·5·22
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Keeping data safe: software and networks
Short code B5·5·23
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Matching threats to solutions
Short code B5·5·24
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Workbook: The internet and its uses
Short code W5·5 · Computer Systems Workbook
The write-in workbook for this chapter has drills, exam-style practice, trace tables, fix-the-mistake and mark-it-yourself pages. Its full mark schemes and an interactive version arrive here with the chapter.


