Hardware, Boolean algebra and virtual machines – A Level Computer Science (9618)
46 questions · page 1 of 4 · Clear filters
Question text
5
A virtual machine may be used to emulate computer hardware using software.
Outline two benefits and two limitations of using a virtual machine.
benefit 1 …
…
benefit 2 …
…
limitation 1 …
…
limitation 2 …
…
[4]
© Cambridge University Press & Assessment 2026
Question text
6
(a) The diagram shows a logic circuit.
P
A
R
Q
B
Z
S
C
Complete the truth table for the given logic circuit.
Show your working.
working space
A
B
C
P
Q
R
S
Z
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[3]
© Cambridge University Press & Assessment 2026
,
,
(b) Describe one benefit of using a Karnaugh map (K‑map) for solving logic problems.
…
… [1]
(c) The Karnaugh map (K‑map) represents a logic circuit with four inputs.
AB
CD
00
01
11
10
00
0
0
1
0
01
0
1
1
0
11
1
1
1
1
10
0
0
1
0
(i)
Draw loop(s) around appropriate group(s) in the K‑map to produce an
optimal sum‑of‑products.
[3]
(ii)
Write the Boolean expression from your answer to 6(c)(i) as a simplified
sum‑of‑products. Do not carry out any further simplification.
…
… [2]
© Cambridge University Press & Assessment 2026
Question text
5
Explain what is meant by the term virtual machine.
…
…
…
…
…
…
…
… [4]
© Cambridge University Press & Assessment 2026
Question text
7
This truth table represents a logic circuit.
INPUT
OUTPUT
A
B
C
D
Z
0
0
0
0
0
0
0
0
1
1
0
0
1
0
0
0
0
1
1
0
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
1
1
1
0
0
0
0
1
0
0
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
1
1
1
1
0
1
1
1
1
1
1
(a) (i)
Complete the Karnaugh map (K-map) for the given truth table.
AB
01
11
10
00
CD
00
01
11
10
[2]
© Cambridge University Press & Assessment 2026
,
,
(ii)
Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products.
[2]
(iii)
Write the Boolean expression from your answer to 7(a)(ii) as a
simplified sum-of-products.
…
… [1]
(b) Simplify the following expression using De Morgan’s laws and Boolean algebra.
Show all the stages in your simplification.
X = A.B.C.D + A.D
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
Question text
4
(a) Describe the characteristics of massively parallel computers.
…
…
…
…
…
… [3]
(b) State one difference and one similarity between the SIMD and MISD computer architectures.
difference …
…
…
similarity …
…
…
[2]
© Cambridge University Press & Assessment 2026
Question text
6
(a) The Karnaugh map (K‑map) represents a logic circuit with four inputs.
AB
CD
00
01
11
10
00
0
1
1
0
01
0
1
0
0
11
0
1
0
0
10
0
1
1
0
(i)
Draw loop(s) around appropriate group(s) in the K‑map to produce an
optimal sum‑of‑products.
[2]
(ii)
Write the Boolean expression from your answer to 6(a)(i) as a simplified
sum‑of‑products. Do not carry out any further simplification.
…
… [2]
(iii)
Write the Boolean expression from your answer to 6(a)(ii) in its simplest form by using
Boolean algebra to simplify it.
… [1]
(b) Simplify the following expression using De Morgan’s laws and Boolean algebra.
Show all the stages in your simplification.
X = A + B + C + B + C
…
…
…
…
…
… [3]
© Cambridge University Press & Assessment 2026
Question text
11
The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
instruction
label
explanation
opcode
operand
LDM
#n
Load the number n to ACC
Load the contents of the location at the given
LDD
<address>
address to ACC
The address to be used is at the given
LDI
<address>
address. Load the contents of this second
address to ACC
Add the contents of the given address to
ADD
<address>
the ACC
ADD
#n
Add the number n to the ACC
Subtract the contents of the given address
SUB
<address>
from the ACC
SUB
#n
Subtract the number n from the ACC
Store the contents of ACC at the
STO
<address>
given address
Gives a symbolic address <label> to the
<label>:
<data>
memory location with the contents <data>
# denotes a denary number, e.g. #123
<label> can be used in place of <address>
The current contents of memory are:
address
data
232
120
580
26
© Cambridge University Press & Assessment 2026
,
,
(a) Use only the given instruction set to write assembly language code to:
•
store the denary value 325 in labelled variable A
•
store the value from location 232 in labelled variable B
•
subtract the value 50 from the value stored in variable B
•
store the current value in the accumulator in location 875
•
add the value stored in location 580 to the value stored in variable A
•
subtract the value stored in location 875 from the current value in the accumulator
•
store the result in variable Final.
…
…
…
…
…
…
…
…
…
…
…
… [5]
(b) Show the values of the variables A, B and Final from 11(a) in the following table, after the
code has been run:
label
data
A:
B:
Final:
[3]
© Cambridge University Press & Assessment 2026
,
,
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (Cambridge University Press & Assessment) to trace copyright holders, but if any items requiring clearance
have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgemen
Question text
6
(a) The diagram shows a logic circuit.
P
A
R
B
Z
S
Q
C
Complete the truth table for the given logic circuit.
Show your working.
Working space
A
B
C
P
Q
R
S
Z
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[3]
ĬÙú¾Ġ´íÈõÏĪÅĊßûµþ×
,
,
(b) (i)
Complete the Karnaugh map (K‑map) for the Boolean expression:
A.B.C + A.B.C + A.B.C + A.B.C
BC
A
00
01
11
10
0
1
[2]
(ii)
Draw loop(s) around appropriate group(s) in the K‑map to produce an optimal
sum‑of‑products.
[2]
(iii)
Write the Boolean expression from your answer to part b(ii) as a simplified
sum‑of‑products. Do not carry out any further simplification.
…
… [2]
Question text
11
The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
Instruction
Label
Opcode
Operand
Explanation
LDM #n
Load the number n to ACC
Load the contents of the location at the given
LDD <address>
address to the ACC
The address to be used is at the given address.
LDI <address>
Load the contents of this second address to the
ACC
Add the contents of the given address to the
ADD <address>
ACC
Subtract the contents of the given address from
SUB <address>
the ACC
Store the contents of the ACC at the given
STO <address>
address
Gives a symbolic address <label> to the
<label>:
<data>
memory location with contents <data>
# denotes a denary number, e.g. #123
<label> can be used in place of <address>
(a) Write assembly language code, using only the given instruction set to:
•
store the denary value 100 as a named constant
•
subtract the constant from the value contained in address 632
•
store the result in variable Answer.
Show the initialisation of the constant and Answer in the table provided.
…
…
…
…
…
…
Label
Contents
[6]
(b) The address 632 contains the value 45.
State the value of Answer after the code described in part (a) has executed.
… [1]
ĬÛú¾Ġ´íÈõÏĪÅĊàù·þ×
,
,
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
ĬÙú¾Ġ´íÈõÏĪÅĊÞû·Ā×
Question text
6
(a) The diagram shows a logic circuit.
A
Q
S
Z
P
B
R
C
Complete the truth table for the given logic circuit.
Show your working.
Working space
A
B
C
P
Q
R
S
Z
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝûµþ×
,
,
(b) (i)
Complete the Karnaugh map (K-map) for the Boolean expression:
A.B.C + A.B.C + A.B.C + A.B.C
BC
A
00
01
11
10
0
1
[2]
(ii)
Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products.
[2]
(iii)
Write the Boolean expression from your answer to part b(ii) as a simplified
sum-of-products. Do not carry out any further simplification.
…
… [2]
Question text
11
The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
Instruction
Label
Opcode
Operand
Explanation
LDM #n
Load the number n to the ACC
Load the contents of the location at the given
LDD <address>
address to ACC
The address to be used is at the given address.
LDI <address>
Load the contents of this second address to
the ACC.
Add the contents of the given address to the
ADD <address>
ACC
Subtract the contents of the given address
SUB <address>
from the ACC
Store the contents of the ACC at the given
STO <address>
address
Gives a symbolic address <label> to the
<label>:
<data>
memory location with the contents <data>
# denotes a denary number, e.g. #123
<label> can be used in place of <address>
The current contents of memory are:
Address
Contents
26
150
86
300
150
420
ĬÑĊ®Ġ´íÈõÏĪÅĊÞû·þ×
,
,
Write assembly language code, using only the given instruction set to:
•
store the contents of location 300 as labelled variable A
•
store the contents of location 420 as labelled variable B
•
add the value stored in the address contained in variable B to the value contained in
variable A
•
store the result in variable Answer.
Show the initialisation and values of the variables A, B and Answer in the table provided.
…
…
…
…
…
…
…
…
Label
Content
[7]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞù·þ×
Question text
6
(a) The Karnaugh map (K‑map) represents a logic circuit with four inputs.
AB
CD
00
01
11
10
00
0
0
0
0
01
1
1
1
0
11
0
1
1
1
10
0
0
1
1
(i)
Draw loop(s) around appropriate group(s) in the K‑map to produce an optimal
sum‑of‑products.
[3]
(ii)
Write the Boolean expression from your answer to part a(i) as a simplified sum‑of‑products.
Do not carry out any further simplification.
…
… [2]
(b) Simplify the following expression using De Morgan’s laws and Boolean algebra.
Show all the stages in your simplification.
X = A+B+C+B+C
…
…
…
…
…
… [3]
Ĭ×ú¾Ġ´íÈõÏĪÅĊßù·Ā×
Question text
13 The table shows assembly language instructions for a processor that has one register, the
Accumulator (ACC).
Instruction
Label
Opcode
Operand
Explanation
LDM #n
Load the number n to the ACC
Load the contents of the location at the given
LDD <address>
address to the ACC
The address to be used is at the given address.
LDI <address>
Load the contents of this second address to
the ACC
Add the contents of the given address to the
ADD <address>
ACC
ADD #n
Add the number n to the ACC
Subtract the contents of the given address
SUB <address>
from the ACC
SUB #n
Subtract the number n from the ACC
Store the contents of the ACC at the given
STO <address>
address
Gives a symbolic address <label> to the
<label>:
<data>
memory location with the contents <data>
# denotes a denary number, e.g. #123
<label> can be used in place of <address>
The current contents of memory are:
Address
Contents
125
563
63
899
ĬÙú¾Ġ´íÈõÏĪÅĊÝù¸þ×
,
,
Write assembly language code, using only the given instruction set to:
•
store the denary value 250 as labelled variable X
•
store the value stored in location 563 as labelled variable Y
•
add the value stored in variable X to the value stored in variable Y
•
subtract the value stored in location 899 from the current value in the Accumulator
•
store the result in variable Total.
Show the initialisation and values of the variables X, Y and Total in the table provided.
…
…
…
…
…
…
…
…
Label
Content
[7]
ĬÛú¾Ġ´íÈõÏĪÅĊÝû¸þ×
,
,
Permission to reproduce items where third‑party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer‑related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
ĬÙú¾Ġ´íÈõÏĪÅĊßù¸Ā×
Question text
5
This truth table represents a logic circuit.
INPUT
OUTPUT
A
B
C
D
Z
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
1
1
0
1
1
0
0
0
1
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
1
1
1
0
0
1
1
1
1
1
(a) Write the Boolean logic expression that corresponds to the given truth table as the
sum-of-products.
Z = …
… [2]
ĬÑĊ®Ġ´íÈõÏĪÅĊßû¶þ×
,
,
(b) (i)
Complete the Karnaugh map (K-map) for the given truth table.
AB
01
11
10
00
CD
00
01
11
10
[2]
(ii)
Draw loop(s) around appropriate group(s) in the K-map to produce an optimal
sum-of-products.
[2]
(iii)
Write the Boolean logic expression from your answer to part (b)(ii) as the simplified
sum-of-products.
Z = …
… [2]
Question text
7
The diagram shows a logic circuit.
A
Q
B
S
P
C
Z
R
D
(a) Complete the truth table for the given logic circuit.
Show your working.
Working space
A
B
C
D
P
Q
R
S
Z
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1
[3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝù¶þ×
,
,
(b) Write the Boolean logic expression that corresponds to the given logic circuit as the
sum-of-products.
Z = …
… [1]
(c) Use Boolean algebra including De Morgan’s laws to simplify the following expression.
Show all working.
(A + B) . (A . B + B . C)
Working …
…
…
…
…
…
Simplified expression …
…
[4]