Operating systems and translation software – A Level Computer Science (9618)
43 questions · page 2 of 3 · Clear filters
Question text
6
The management and scheduling of processes are tasks carried out by an operating system.
(a) Describe one reason why scheduling is necessary in process management.
…
…
…
… [2]
(b) Explain the function of the round robin scheduling routine and give a benefit of this routine.
Function …
…
…
…
…
…
Benefit …
…
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞú¶þ×
[Turn
over
Question text
8
Explain the process of syntax analysis during program compilation.
…
…
…
…
…
…
…
… [4]
ĬÑĊ®Ġ´íÈõÏĪÅĊàü¶Ā×
,
,
ĬÓĊ®Ġ´íÈõÏĪÅĊàú¶Ā×
Question text
9
Several syntax diagrams are shown.
upper
digit
J
0
K
1
2
L
3
V
4
X
5
Z
lower
6
a
7
e
8
i
9
p
u
y
lower
lower
passcode
upper
digit
digit
digit
(a) State why JJ90 is not a valid passcode for the given syntax diagrams.
…
… [1]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝü¸þ×
,
,
(b) Complete the Backus-Naur Form (BNF) for <upper> and <passcode>.
<upper> ::= …
…
<passcode> ::= …
…
…
…
[3]
(c) A character can be an upper, a lower or a digit.
The rules for passcode have been changed so that the third character may also be selected
from upper and the final character may be repeated one or more times.
Complete the syntax diagram for passcode to show these changes.
lower
lower
passcode
upper
digit
digit
digit
[2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝú¸þ×
Question text
8
(a) Describe the process of segmentation for memory management.
…
…
…
…
…
…
…
… [4]
(b) Explain what is meant by disk thrashing.
…
…
…
…
…
… [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊßúµĀ×
Question text
10 Several syntax diagrams are shown.
letter
operator
A
+
E
–
I
*
O
/
digit
U
0
Y
1
symbol
2
#
3
$
4
?
5
&
6
@
7
8
9
label
digit
digit
letter
equation
label
operator
label
label
=
ĬÑĊ®Ġ´íÈõÏĪÅĊÞú·þ×
,
,
(a) Complete the Backus-Naur Form (BNF) for the given syntax diagrams.
<operator> ::= …
…
<label> ::= …
…
<equation> ::= …
…
[4]
(b) A new syntax rule, password, is required. It must begin with a letter or a symbol, followed by
a digit and end with one or two symbols.
(i)
Draw a syntax diagram for password.
[3]
(ii)
Write the BNF for password.
…
…
…
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞü·þ×
Question text
7
Several syntax diagrams are shown.
odd
even
1
0
3
2
5
4
7
6
9
8
symbol
letter
%
A
£
B
#
C
@
D
$
E
number
odd
odd
even
ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×
,
,
(a) State why each number is invalid for the given syntax diagrams.
21
Reason …
…
123
Reason …
…
[2]
(b) Complete the Backus‑Naur Form (BNF) for the given syntax diagrams.
<symbol> ::= …
…
<number> ::= …
…
[2]
(c) A new syntax rule, code, is required. It must begin with a letter, followed by one or two
numbers, and end with a symbol.
(i)
Draw a syntax diagram for code.
[3]
(ii)
Write the BNF for code.
…
…
…
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊßû¶Ā×
Question text
9
(a) The kernel is the central component of an Operating System (OS).
Outline how the kernel of an OS acts as an interrupt handler.
…
…
…
… [2]
(b) (i)
State what is meant by the term multi‑tasking in an Operating System.
…
… [1]
(ii)
Describe how multi‑tasking is implemented in an Operating System.
…
…
…
… [2]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞù¸þ×
Question text
8
(a) Describe the process of segmentation for memory management.
…
…
…
…
…
…
…
… [4]
(b) Explain what is meant by disk thrashing.
…
…
…
…
…
… [3]
ĬÑĊ®Ġ´íÈõÏĪÅĊàûµĀ×
Question text
10 Several syntax diagrams are shown.
letter
operator
A
+
E
–
I
*
O
/
digit
U
0
Y
1
symbol
2
#
3
$
4
?
5
&
6
@
7
8
9
label
digit
digit
letter
equation
label
operator
label
label
=
ĬÑĊ®Ġ´íÈõÏĪÅĊÝû·þ×
,
,
(a) Complete the Backus-Naur Form (BNF) for the given syntax diagrams.
<operator> ::= …
…
<label> ::= …
…
<equation> ::= …
…
[4]
(b) A new syntax rule, password, is required. It must begin with a letter or a symbol, followed by
a digit and end with one or two symbols.
(i)
Draw a syntax diagram for password.
[3]
(ii)
Write the BNF for password.
…
…
…
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝù·þ×
Question text
5
(a) Write this Reverse Polish Notation (RPN) in infix form:
5 2 + 9 3 - / 3 *
…
…
…
… [3]
(b) Write this infix expression in RPN:
((7 + 3) - (2 * 8)) / 6
…
…
…
… [2]
(c) Evaluate this RPN expression:
a b - c d + * e /
when
a = 17, b = 5, c = 7, d = 3 and e = 10
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
Question text
5
(a) Write this infix expression in Reverse Polish Notation (RPN):
(7 – 2 + 8) / (9 – 5)
…
…
…
… [2]
(b) Evaluate this RPN expression:
a d + a b + c - *
when
a = 6, b = 3, c = 7 and d = 9
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
(c) Write this RPN expression in infix form:
b a c - + d b + * c /
…
…
…
… [3]
Question text
5
(a) Write this Reverse Polish Notation (RPN) in infix form:
5 2 + 9 3 - / 3 *
…
…
…
… [3]
(b) Write this infix expression in RPN:
((7 + 3) - (2 * 8)) / 6
…
…
…
… [2]
(c) Evaluate this RPN expression:
a b - c d + * e /
when
a = 17, b = 5, c = 7, d = 3 and e = 10
Show the changing contents of the stack as the RPN expression is evaluated.
[4]
Question text
7
(a) A student buys a new computer.
State one benefit to the student of a user interface and give an example.
Benefit …
…
…
Example …
…
[2]
(b) Two of the process states are the running state and the ready state.
Identify one other process state.
… [1]
(c) Outline conditions under which a process could change from the running state to the ready
state.
…
…
…
… [2]
Question text
9
(a) (i)
Write the infix expression for this Reverse Polish Notation (RPN) expression:
5 2 – 5 4 + * 9 /
…
… [2]
(ii)
Show how the contents of the following stack will change as the RPN expression in
part (a)(i) is evaluated.
[4]
(b) Explain how a stack can be used to evaluate RPN expressions.
…
…
…
…
…
… [3]
Question text
5
(a) Outline the reasons why an operating system may need to use virtual memory.
…
…
…
… [2]
(b) Explain the circumstances in which disk thrashing could occur.
…
…
…
…
…
… [3]