Skip to content
Book 5: Computer Systems

Book 5 · Chapter 3

Hardware

§3.1§3.2§3.3§3.4Banker · ≈ 23.3 m · →B5·3

This 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.

Open in the ebook

For the whole chapter

§3.1 Computer architecture · CPU performance and embedded systems

Short code B5·3·1

§3.2 Input and output devices

Short code B5·3·2

§3.3 Data storage

Short code B5·3·3

§3.4 Network hardware

Short code 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

1PC → MAR100
2RAM → MDRNULLNULLLOAD 200NULLNULL
3MDR → CIR; PC + 1101NULLNULLLOAD 200NULL
4decode; 200 → MARNULL200NULLNULLNULL
5RAM → MDRNULLNULL15NULLNULL
6MDR → ACCNULLNULLNULLNULL15
7PC → MARNULL101NULLNULLNULL
8RAM → MDRNULLNULLADD 201NULLNULL
9MDR → CIR; PC + 1102NULLNULLADD 201NULL
10decode; 201 → MARNULL201NULLNULLNULL
11RAM → MDRNULLNULL27NULLNULL
12ALU: ACC + MDRNULLNULLNULLNULL42
Run and checked before printing

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).
Run and checked before printing

Output

48 bits
Run and checked before printing

IP addresses

Short code B5·3·26

address = "192.168.0.25"
for part in address.split("."):
    print(part, "=", format(int(part), "08b"))
Each part of the IPv4 address 192.168.0.25 as one 8-bit byte.

Output

192 = 11000000
168 = 10101000
0 = 00000000
25 = 00011001
Run and checked before printing
print("IPv4:", 2 ** 32)
print("IPv6:", 2 ** 128)
How many different addresses 32 bits and 128 bits can make. Every extra bit doubles the count.

Output

IPv4: 4294967296
IPv6: 340282366920938463463374607431768211456
Run and checked before printing

Output

172.16.300.4 not valid
192.168.0.25 valid
Run and checked before printing

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.

Ask Z about Hardware
Buy ZAK's books — WhatsApp the books desk: Buy the booksPrint or ebook