Book 5 · Chapter 3
Hardware
B5·3This 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 pageHardware
B5·3·T - QuizHardware
B5·3·Q1 - LabFetch–decode–execute stepper
B5·3·X1 - LabIP, MAC & subnet lab
B5·3·X2 - LabInterrupts timeline
B5·3·X3
§3.1 Computer architecture · CPU performance and embedded systems
Short code B5·3·1
- FlashcardsFlashcards §3.1: CPU registers, buses & the FDE cycle
B5·3·F1 - FlashcardsFlashcards §3.1: CPU performance & embedded systems
B5·3·F2 - Past-paper questionsPast-paper questions §3.1 (computer-architecture)
- Past-paper questionsPast-paper questions §3.1 (cpu-performance-and-embedded-systems)
§3.2 Input and output devices
Short code B5·3·2
- FlashcardsFlashcards §3.2: Input devices & sensors
B5·3·F3 - FlashcardsFlashcards §3.2: Output devices
B5·3·F4 - Past-paper questionsPast-paper questions §3.2 (input-and-output-devices)
B5·3·2
§3.3 Data storage
Short code B5·3·3
- FlashcardsFlashcards §3.3: Primary, secondary, virtual & cloud storage
B5·3·F5 - Past-paper questionsPast-paper questions §3.3 (data-storage)
B5·3·3
§3.4 Network hardware
Short code B5·3·4
- FlashcardsFlashcards §3.4: Network hardware & addresses
B5·3·F6 - Past-paper questionsPast-paper questions §3.4 (network-hardware)
B5·3·4
The CPU and the microprocessor
Short code B5·3·10
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Inside a Von Neumann CPU
Short code B5·3·11
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
The fetch-decode-execute cycle
Short code B5·3·12
Output · 11 rows
| 1 | PC → MAR | 100 | ||||
|---|---|---|---|---|---|---|
| 2 | RAM → MDR | NULL | NULL | LOAD 200 | NULL | NULL |
| 3 | MDR → CIR; PC + 1 | 101 | NULL | NULL | LOAD 200 | NULL |
| 4 | decode; 200 → MAR | NULL | 200 | NULL | NULL | NULL |
| 5 | RAM → MDR | NULL | NULL | 15 | NULL | NULL |
| 6 | MDR → ACC | NULL | NULL | NULL | NULL | 15 |
| 7 | PC → MAR | NULL | 101 | NULL | NULL | NULL |
| 8 | RAM → MDR | NULL | NULL | ADD 201 | NULL | NULL |
| 9 | MDR → CIR; PC + 1 | 102 | NULL | NULL | ADD 201 | NULL |
| 10 | decode; 201 → MAR | NULL | 201 | NULL | NULL | NULL |
| 11 | RAM → MDR | NULL | NULL | 27 | NULL | NULL |
| 12 | ALU: ACC + MDR | NULL | NULL | NULL | NULL | 42 |
Cores, cache and clock
Short code B5·3·13
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
The instruction set
Short code B5·3·14
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Embedded systems
Short code B5·3·15
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Input devices
Short code B5·3·16
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Touch screens
Short code B5·3·17
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Output devices
Short code B5·3·18
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Sensors and control
Short code B5·3·19
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Primary storage: RAM and ROM
Short code B5·3·20
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Secondary storage and magnetic storage
Short code B5·3·21
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Optical and solid-state storage
Short code B5·3·22
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Virtual memory
Short code B5·3·23
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Cloud storage
Short code B5·3·24
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
The NIC and the MAC address
Short code B5·3·25
Output
A0 = 1010 0000 in binary (8 bits).
Output
48 bits
IP addresses
Short code B5·3·26
address = "192.168.0.25"
for part in address.split("."):
print(part, "=", format(int(part), "08b"))Output
192 = 11000000 168 = 10101000 0 = 00000000 25 = 00011001
print("IPv4:", 2 ** 32)
print("IPv6:", 2 ** 128)Output
IPv4: 4294967296 IPv6: 340282366920938463463374607431768211456
Output
172.16.300.4 not valid 192.168.0.25 valid
The router
Short code B5·3·27
Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.
Workbook: Hardware
Short code W5·3 · 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.


