Operating systems and translation software – A Level Computer Science (9618)

43 questions · page 1 of 3

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
9618/31/M/J/26 · Question 7May/June 2026Paper 319 marks
Loading question…
Question text

7
(a) Write this infix expression in Reverse Polish Notation (RPN).
21 * (15 – 3 + 8) / 7
…
…
…
… [2]
(b) Write this RPN expression in infix form.
c d + a b – a c - * /
…
…
…
… [3]
(c) The RPN expression
15
9 – 24
3 / * 18
6 + /
is to be evaluated.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
© Cambridge University Press & Assessment 2026

2
9618/32/M/J/26 · Question 6May/June 2026Paper 329 marks
Loading question…
Question text

6
(a) Write this infix expression in Reverse Polish Notation (RPN).
16 + ((9 – 7) / (18 + 6))
…
…
…
… [2]
(b) Write this RPN expression in infix form.
6
15 + 20
3 - - 27
9 * /
…
…
…
…
…
… [3]
(c) The RPN expression
c a b - * b c + / d *
is to be evaluated, where:
a = 8, b = 2, c = 10 and d = 18.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
© Cambridge University Press & Assessment 2026

3
9618/33/M/J/26 · Question 7May/June 2026Paper 339 marks
Loading question…
Question text

7
(a) Outline the process of using a stack to evaluate an expression written using Reverse Polish
Notation (RPN).
…
…
…
…
…
…
…
… [3]
(b) Write the following infix expression in RPN.
((18 – 15 + 3) * 5) / 12
…
…
…
… [2]
(c) The RPN expression
16
3 * 36
6 / 18
6 - * +
is to be evaluated.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
© Cambridge University Press & Assessment 2026

Advertisement
4
9618/31/O/N/25 · Question 4Oct/Nov 2025Paper 316 marks
Loading question…
Question text

4
(a) A scheduling routine determines how processes are managed by the operating system.
Identify two scheduling routines.
1 …
2 …
[2]
(b) Describe two ways in which the complexities of the computer hardware are hidden from the
user.
1 …
…
…
…
2 …
…
…
…
[4]

5
9618/31/O/N/25 · Question 8Oct/Nov 2025Paper 318 marks
Loading question…
Question text

8
(a) Outline the purpose of lexical analysis during the compilation of a program.
…
…
…
… [2]
(b) Write the Reverse Polish Notation (RPN) for the given infix expression:
(2 – 6) * (13 + 7) / 5
…
…
…
… [2]
(c) The RPN expression:
d a b + * c a ‑ /
is to be evaluated, where:
a = 6, b = 12, c = 15 and d = 5.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
ĬÙú¾Ġ´íÈõÏĪÅĊÝûµĀ×

6
9618/32/O/N/25 · Question 5Oct/Nov 2025Paper 325 marks
Loading question…
Question text

5
(a) Describe how interrupt handling is used in low-level scheduling.
…
…
…
…
…
… [2]
(b) In process management, a process can be in one of three process states: running, ready or
blocked.
Complete the table to identify one reason why a process could be in each of the three states.
Process state
Reason
…
…
running
…
…
…
…
ready
…
…
…
…
blocked
…
…
[3]
ĬÏĊ®Ġ´íÈõÏĪÅĊàû¸Ā×

7
9618/32/O/N/25 · Question 8Oct/Nov 2025Paper 328 marks
Loading question…
Question text

8
(a) State the purpose of the optimisation stage in the compilation of a program.
…
…
…
… [1]
(b) Convert this Reverse Polish Notation (RPN) back to its original infix form:
a b - c + c a - * d /
…
…
…
…
…
… [3]
(c) The RPN expression:
c a / b d – * b +
is to be evaluated, where:
a = 3, b = 16, c = 9 and d = 6.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊßûµĀ×

8
9618/33/O/N/25 · Question 5Oct/Nov 2025Paper 334 marks
Loading question…
Question text

5
(a) State the purpose of multi‑tasking.
…
… [1]
(b) Explain how an operating system ensures that multi‑tasking operates efficiently.
…
…
…
…
…
… [3]
ĬÕú¾Ġ´íÈõÏĪÅĊßû·Ā×

Advertisement
9
9618/33/O/N/25 · Question 7Oct/Nov 2025Paper 339 marks
Loading question…
Question text

7
(a) Outline the process of optimisation during the compilation of a program.
…
…
…
… [2]
(b) Write the Reverse Polish Notation (RPN) for the given infix expression:
((6 + 12) / (16 – 10)) * 18
…
…
…
…
…
… [3]
(c) The RPN expression
c a – b d + * b c + /
is to be evaluated, where:
a = 4, b = 12, c = 24 and d = 6.
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
ĬÙú¾Ġ´íÈõÏĪÅĊÞù¶þ×

10
9618/31/M/J/25 · Question 6May/June 2025Paper 314 marks
Loading question…
Question text

6
Describe the process of executing a program using an interpreter.
…
…
…
…
…
…
…
… [4]
ĬÓĊ®Ġ´íÈõÏĪÅĊßù¶þ×

11
9618/31/M/J/25 · Question 7May/June 2025Paper 316 marks
Loading question…
Question text

7
Several syntax diagrams are shown.
uppercase
lowercase
A
b
C
d
E
f
G
h
J
k
symbol
digit
$
0
@
1
#
2
3
&
4
%
5
6
7
8
9
lowercase
passcode
uppercase
symbol
digit
ĬÑĊ®Ġ´íÈõÏĪÅĊÝû¶Ā×
,
,
(a) State why each passcode is invalid for the given syntax diagrams.
#Jd7
Reason …
…
C%6A
Reason …
…
[2]
(b) Complete the Backus-Naur Form (BNF) for <uppercase> and <passcode>.
<uppercase> ::= …
…
<passcode> ::= …
…
…
…
…
…
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝù¶Ā×

12
9618/31/M/J/25 · Question 8May/June 2025Paper 316 marks
Loading question…
Question text

8
(a) Describe what is meant by multi-tasking and how it benefits process management.
…
…
…
…
… [2]
(b) Explain the function of the shortest remaining time scheduling routine and give a benefit of
this routine.
Function …
…
…
…
…
…
Benefit …
…
[4]

13
9618/32/M/J/25 · Question 5May/June 2025Paper 327 marks
Loading question…
Question text

5
The management and scheduling of processes are tasks carried out by an operating system.
(a) Identify three process states.
1 …
2 …
3 …
[3]
(b) Describe the function of the shortest job first scheduling routine and give a benefit of this
routine.
Function …
…
…
…
…
…
Benefit …
…
[4]

Advertisement
14
9618/32/M/J/25 · Question 8May/June 2025Paper 324 marks
Loading question…
Question text

8
Explain what is meant by lexical analysis during program compilation.
…
…
…
…
…
…
…
… [4]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝû¶þ×

15
9618/32/M/J/25 · Question 9May/June 2025Paper 326 marks
Loading question…
Question text

9
Several syntax diagrams are shown.
letter
digit
A
0
B
1
C
2
D
3
E
4
F
5
G
6
H
7
J
8
K
9
operator
+
–
*
/
letter
variable
letter
digit
^
ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×
,
,
(a) State why 9K is not a valid variable for the given syntax diagrams.
…
… [1]
(b) Complete the Backus-Naur Form (BNF) for <operator>.
<operator> ::= …
… [1]
(c) An expression is defined as follows:
•
A variable is assigned to a variable followed by an operator followed by another variable.
•
The operator and final variable stage can be repeated as many times as necessary.
Complete the syntax diagram for an expression.
expression
=
variable
[3]
(d) A character can be a letter or a digit.
An additional constraint has been applied to the definition of variable. It must comply with the
given syntax diagram, but it will only pass validation if it has at least four characters.
State one example of a valid variable.
…
… [1]

Advertisement