Skip to content
Book 5: Computer Systems

Book 5 · Chapter 4

Software

§4.1§4.2Core · ≈ 11.8 m · ↗B5·4

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

§4.1 Types of software and interrupts

Short code B5·4·1

§4.2 Programming languages, translators and IDEs

Short code B5·4·2

System and application software

Short code B5·4·10

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

What an operating system does

Short code B5·4·11

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

From power button to application

Short code B5·4·12

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Interrupts

Short code B5·4·13

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Handling an interrupt

Short code B5·4·14

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

High-level and low-level languages

Short code B5·4·15

marks = [64, 81, 47, 90, 58]
print(sorted(marks))
One high-level statement, a lot of work: sorted puts the whole list in order. In machine code this needs a loop of many instructions.

Output

[47, 58, 64, 81, 90]
Run and checked before printing

Assembly language and the assembler

Short code B5·4·16

score = 12
bonus = 3
total = score + bonus
print(total)
The quiz's sum in a high-level language (Python). Line 3 does in one statement what takes three assembly instructions.

Output

15
Run and checked before printing

Compilers and interpreters

Short code B5·4·17

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Compiler or interpreter?

Short code B5·4·18

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Integrated development environments

Short code B5·4·19

def average(marks):
    total = sum(marks)
    return total / len(marks)

print(average([64, 81, 47, 90]))
The program in the IDE picture, with the typing slip fixed and run in the run-time environment.

Output

70.5
Run and checked before printing

Workbook: Software

Short code W5·4 · 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 Software
Buy ZAK's books — WhatsApp the books desk: Buy the booksPrint or ebook