Skip to content
Book 7: Computer Systems

Book 7 · Chapter 5

Software

§5.1§5.2Exam craftB7·5

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

§5.1 Types of software and interrupts

Short code B7·5·1

§5.2 Programming languages, translators and IDEs

Short code B7·5·2

What an operating system is for

Short code B7·5·10

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

User accounts and security

Short code B7·5·11

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

Managing files

Short code B7·5·12

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

Managing memory: allocating, loading and protecting

Short code B7·5·13

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

Paging, segmentation and virtual memory

Short code B7·5·14

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

Managing processes

Short code B7·5·15

Output

A 2 3 2 BCA
B 2 0 4 CA
C 2 2 6 AC
A 2 1 8 CA
C 2 0 10 A
A 1 0 11
Run and checked before printing

Peripherals and device drivers

Short code B7·5·16

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

Interrupts: what causes them

Short code B7·5·17

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 B7·5·18

Output

Program running: PC 104 ACC 37
Interrupt! Saved [104, 37]
ISR running: PC 900 ACC 0
Restored: PC 104 ACC 37
Run and checked before printing

High-level and low-level languages

Short code B7·5·19

test = 30
bonus = 6
total = test + bonus
print(total)
High-level: one readable line does the whole calculation.

Output

36
Run and checked before printing

Choosing high level or low level

Short code B7·5·20

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

Compilers, interpreters and assemblers

Short code B7·5·21

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

Choosing a translator

Short code B7·5·22

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

The integrated development environment

Short code B7·5·23

total=0
for mark in [14,9,17]:
  total=total+mark
  print( "Running total:",total )
print("Final:" , total)
Before prettyprint: cramped spacing and two-space indentation. It runs, but it is hard to read.

Output

Running total: 14
Running total: 23
Running total: 40
Final: 40
Run and checked before printing
total = 0
for mark in [14, 9, 17]:
    total = total + mark
    print("Running total:", total)
print("Final:", total)
After prettyprint: the same program laid out consistently. The output is identical.

Output

Running total: 14
Running total: 23
Running total: 40
Final: 40
Run and checked before printing

Past-paper practice

Short code B7·5·90

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

Workbook: Software

Short code W7·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.

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