Hardware: logic circuits, Boolean algebra and processors – A Level Computer Science (old syllabus, to 2021) (9608)

20 questions · page 1 of 2 · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
9608/31/O/N/21 · Question 4Oct/Nov 2021Paper 3110 marks
Loading question…
Question text

4
(a) The truth table for a logic circuit with four inputs is shown.
INPUT
OUTPUT
P
Q
R
S
X
0
0
0
0
1
0
0
0
1
1
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
1
0
0
1
1
0
0
0
1
1
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
0
0
1
1
0
1
0
1
1
1
0
1
1
1
1
1
1
(i)
Write the Boolean algebraic expression for the truth table as a sum-of-products.
X = … [2]
(ii)
Complete the following Karnaugh Map (K-map) for the truth table.
PQ
00
01
11
10
00
01
RS
11
10
[2]
(iii)
The K-map can be used to simplify the expression in part (a)(i).
Draw loop(s) around appropriate groups in the K-map to produce an optimal
sum-of-products.
[2]
(iv)
Write the simplified sum-of-products from the K-map.
X = … [2]
(b) Simplify the expression for X, as represented by the truth table in part (a), using Boolean
Algebra.
…
…
…
… [2]

2
9608/32/O/N/21 · Question 3Oct/Nov 2021Paper 3210 marks
Loading question…
Question text

3
(a) The truth table for a logic circuit with four inputs is shown.
INPUT
OUTPUT
P
Q
R
S
X
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
0
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
0
1
1
1
0
0
1
1
1
1
1
(i)
Write the Boolean algebraic expression for the truth table as a sum-of-products.
X = … [2]
(ii)
Complete the following Karnaugh Map (K-map) for the truth table.
PQ
00
01
11
10
00
01
RS
11
10
[2]
(iii)
The K-map can be used to simplify the expression in part (a)(i).
Draw loop(s) around appropriate groups in the K-map to produce an optimal
sum-of-products.
[2]
(iv)
Write the simplified sum-of-products from the K-map.
X = … [2]
(b) Simplify the expression for X, represented by the truth table in part (a), using Boolean
Algebra.
…
…
…
… [2]

3
9608/32/O/N/21 · Question 7Oct/Nov 2021Paper 324 marks
Loading question…
Question text

7
A virtual machine is the software emulation of a computer system using another computer system.
Describe two benefits and two limitations of using a virtual machine.
Benefit 1 …
…
…
Benefit 2 …
…
…
Limitation 1 …
…
…
Limitation 2 …
…
…
[4]

Advertisement
4
9608/31/O/N/20 · Question 4Oct/Nov 2020Paper 3115 marks
Loading question…
Question text

4
The following truth table represents a logic circuit with three inputs and two outputs.
INPUT
OUTPUT
A
B
C
X
Y
0
0
0
0
0
0
0
1
1
0
0
1
0
1
0
0
1
1
0
1
1
0
0
1
0
1
0
1
0
1
1
1
0
0
1
1
1
1
1
1
(a) Write the Boolean expressions for the truth table as sum-of-products.
X = …
…
Y = …
…
[4]
(b) Complete the Karnaugh Maps (K-maps) for the truth table.
OUTPUT X
OUTPUT Y
AB
AB
00
01
11
10
00
01
11
10
0
0
C
C
1
1
[2]
(c) The K-maps can be used to simplify one of the expressions in part (a).
(i)
Draw loop(s) around appropriate group(s) of 1s to produce an optimal sum-of-products
for the single output table that can be simplified in part (b).
[3]
(ii)
Write the simplified sum-of-products expressions for this output from part (c)(i).
… [3]
(d) Identify the common logic circuit given by the truth table in part (a). Give the use of each
output.
Logic circuit …
Use of X …
Use of Y …
[3]

5
9608/31/O/N/20 · Question 5Oct/Nov 2020Paper 314 marks
Loading question…
Question text

5
Complete these statements about a virtual machine.
A virtual machine is … that emulates a
… computer system.
A virtual machine allows multiple … operating systems to run
on one computer using a … operating system.
[4]

6
9608/32/O/N/20 · Question 4Oct/Nov 2020Paper 329 marks
Loading question…
Question text

4
The following truth table represents a logic circuit with three inputs and two outputs.
INPUT
OUTPUT
A
B
C
X
Y
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
1
1
0
0
0
0
1
0
1
0
1
1
1
0
0
0
1
1
1
1
1
(a) Write the Boolean expressions for the truth table as sum-of-products.
X = …
Y = …
[3]
(b) Complete the Karnaugh Maps (K-maps) for the truth table.
OUTPUT X
OUTPUT Y
AB
AB
00
01
11
10
00
01
11
10
0
0
C
C
1
1
[2]
(c) The K-maps can be used to simplify one of the expressions in part (a).
(i)
Draw loop(s) around appropriate group(s) of 1s to produce an optimal sum-of-products
for the single output table that can be simplified in part (b).
[2]
(ii)
Write the simplified sum-of-products expressions for this output from part (c)(i).
… [2]

7
9608/32/O/N/20 · Question 5Oct/Nov 2020Paper 325 marks
Loading question…
Question text

5
Complete these statements about flip-flops.
A flip-flop is a … .
It has … stable states.
A flip-flop is used for … .
There are different types of flip-flop, for example … and
… .
[5]

8
9608/32/O/N/20 · Question 6Oct/Nov 2020Paper 3210 marks
Loading question…
Question text

6
Mahmoud is developing a new application, MyApp, that needs to work with three different
operating systems (OS1, OS2 and OS3).
He has decided to use virtual machine software to test MyApp with these three different operating
systems.
The diagram shows MyApp running on three virtual machines.
MyApp
MyApp
MyApp
OS1
OS2
OS3
Virtual machine software
OS4
Hardware
(a) Describe the roles of the four operating systems (OS1, OS2, OS3 and OS4) shown in the
diagram.
…
…
…
…
… [3]
(b) Describe the role of the virtual machine software in the testing of MyApp.
…
…
…
…
…
… [3]
(c) Explain one benefit and one drawback of this approach to testing MyApp.
Benefit …
…
…
…
Drawback …
…
…
…
[4]

Advertisement
9
9608/31/O/N/19 · Question 4Oct/Nov 2019Paper 317 marks
Loading question…
Question text

4
A Boolean expression produces the following truth table.
INPUT
OUTPUT
A
B
C
X
0
0
0
1
0
0
1
1
0
1
0
0
0
1
1
1
1
0
0
0
1
0
1
1
1
1
0
0
1
1
1
1
(a) Write the Boolean expression for the truth table as a sum-of-products.
X = … [2]
(b) Complete the Karnaugh Map (K-map) for the truth table above.
AB
00
01
11
10
0
C
1
[1]
The K-map can be used to simplify the expression in part (a).
(c) Draw loops around appropriate groups in the K-map in part (b) to produce an optimal sum-of-
products.
[2]
(d) Write, using your answer to part (c), a simplified sum-of-products expression for the truth
table.
X = … [2]

10
9608/32/O/N/19 · Question 2Oct/Nov 2019Paper 3211 marks
Loading question…
Question text

2
(a) A Boolean expression produces the following truth table.
INPUT
OUTPUT
A
B
C
X
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
0
1
1
1
0
(i)
Write the Boolean expression for the truth table by applying the sum-of-products.
X = …
… [3]
(ii)
Complete the Karnaugh Map (K-map) for the truth table in part (a).
AB
00
01
11
10
0
C
1
[1]
The K-map can be used to simplify the function in part (a)(i).
(iii)
Draw loop(s) around appropriate groups in the table in part (a)(ii), to produce an optimal
sum-of-products.
[2]
(iv)
Write, using your answer to part (a)(iii), a simplified Boolean expression for your
Karnaugh map.
X = … [2]
(b) Simplify the following expression using De Morgan’s laws. Show your working.
(W + X) • (Y + Z)
…
…
…
…
…
… [3]

11
9608/31/O/N/18 · Question 4Oct/Nov 2018Paper 3117 marks
Loading question…
Question text

4
(a) A Boolean expression corresponds to the following truth table.
INPUT
OUTPUT
A
B
C
X
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
1
1
0
0
0
1
0
1
1
1
1
0
1
1
1
1
1
(i)
Write the Boolean expression for the truth table by applying the sum‑of‑products.
X = … [2]
(ii)
Complete the Karnaugh Map (K‑map) for the truth table.
AB
00
01
11
10
0
C
1
[1]
(iii)
The K‑map can be used to simplify the expression in part (a)(i).
Draw loop(s) around appropriate groups of 1s in the table in part (a)(ii) to produce an
optimal sum‑of‑products.
[3]
(iv)
Write the simplified sum‑of‑products expression for your answer to part (a)(iii).
X = … [3]
(b) A logic circuit with four inputs produces the following truth table.
INPUT
OUTPUT
A
B
C
D
X
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
0
0
1
1
1
0
1
0
0
0
0
1
0
0
1
0
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
(i)
Complete the K‑map that corresponds to the truth table.
AB
CD
[4]
(ii)
Draw loop(s) around appropriate groups of 1s in the table in part (b)(i) to produce an
optimal sum‑of‑products.
[2]
(iii)
Write the simplified sum‑of‑products expression for your answer to part (b)(ii).
X = … [2]

12
9608/32/O/N/18 · Question 3Oct/Nov 2018Paper 3219 marks
Loading question…
Question text

3
(a) Consider the following Boolean expression.
A . B . C + A . B . C + A . B . C
Use Boolean algebra to simplify the expression.
…
…
…
…
…
…
…
… [4]
(b) (i)
Complete the truth table for the following logic circuit.
A B C
X
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[2]
(ii)
Complete the Karnaugh Map (K-map) for the truth table in part (b)(i).
AB
00
01
11
10
0
C
1
[1]
(iii)
Draw loops around appropriate groups of 1s in the table in part (b)(ii) to produce an
optimal sum-of-products.
[2]
(iv)
Using your answer to part (b)(iii), write a simplified sum-of-products Boolean expression.
X = … [2]
(c) The truth table for a logic circuit with four inputs is shown.
INPUT
OUTPUT
A
B
C
D
X
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
0
0
1
1
1
0
1
0
0
0
0
1
0
0
1
0
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
(i)
Complete the K-map for the truth table in part (c).
AB
CD
[4]
(ii)
Draw loops around appropriate groups of 1s in the table in part (c)(i) to produce an
optimal sum-of-products.
[2]
(iii)
Using your answer to part (c)(ii), write a simplified sum-of-products Boolean expression.
X = … [2]

13
9608/32/O/N/18 · Question 5Oct/Nov 2018Paper 3214 marks
Loading question…
Question text

5
(a) Most desktop or laptop computers use CISC (Complex Instruction Set Computing)
architecture. Most smartphones and tablets use RISC (Reduced Instruction Set Computing).
State four features that are different for the CISC and RISC architectures.
1 …
…
2 …
…
3 …
…
4 …
…
[4]
(b) In a RISC processor, four instructions (A, B, C, D) are processed using pipelining.
The following table shows five stages that take place when instructions are fetched and
executed. In time interval 1, instruction A has been fetched.
(i)
In the table, write the instruction labels (A, B, C, D) in the correct time interval for each
stage. Each operation only takes one time interval.
Time interval
Stage
1
2
3
4
5
6
7
8
9
A
Fetch instruction
Decode instruction
Execute instruction
Access operand in memory
Write result to register
[3]
(ii)
When completed, the table in part (b)(i) shows how pipelining allows instructions to be
carried out more rapidly. Each time interval represents one clock cycle.
Calculate how many clock cycles are saved by using pipelining in the example in
part (b)(i).
Show your working.
Working …
…
…
Answer …
[3]
(c) The table shows four statements about computer architecture.
Put a tick (✓) in each row to identify the computer architecture associated with each statement.
Architecture
Statement
SIMD
MIMD
SISD
Each processor executes a different instruction
There is only one processor
Each processor executes the same instruction input
using data available in the dedicated memory
Each processor typically has its own partition within a
shared memory
[4]

Advertisement
14
9608/31/O/N/17 · Question 2Oct/Nov 2017Paper 3110 marks
Loading question…
Question text

2
(a) The following diagram shows four descriptions and four types of computer architecture.
Draw lines to connect each description to the appropriate computer architecture.
Description
Computer architecture
Most parallel computer systems use
this architecture.
SIMD
Widely used to process 3D graphics in
video games.
MIMD
A microprocessor is used to control a
washing machine.
MISD
There are a number of processing
units. Each processing unit executes
SISD
the same instruction but on different
data.
[4]
(b) A computer has a single processor that contains four processing units.
Explain why this is not an example of a massively parallel computer.
…
…
…
… [2]
(c) An application has previously executed on a single computer. The application will be
transferred onto a massively parallel computer.
The program code used in the application will need to be updated to ensure that the power of
the massively parallel computer is fully used.
Explain what changes will be required to the program code.
…
…
…
… [2]
(d) Explain one of the hardware issues that will have to be overcome if a massively parallel
computer is to function successfully.
…
…
…
… [2]

15
9608/31/O/N/17 · Question 5Oct/Nov 2017Paper 3115 marks
Loading question…
Question text

5
(a) (i)
Complete the truth table for this 2-input NAND gate:
A
B
X
A
0
0
0
1
X
1
0
B
1
1
[1]
(ii)
Complete the truth table for this 3-input NAND gate:
A
B
C
X
0
0
0
0
0
1
A
0
1
0
X
0
1
1
B
1
0
0
C
1
0
1
1
1
0
1
1
1
[1]
(b) A SR flip-flop is constructed using two NAND gates.
S
Q
Q
R
(i)
Complete the truth table for the SR flip-flop:
S
R
Q
Q
Initially
1
0
0
1
R changed to 1
1
1
S changed to 0
0
1
S changed to 1
1
1
S and R changed to 0
0
0
1
1
[3]
(ii)
The final row in the table in part b(i) shows that the output for both Q and Q is 1.
Explain why this is a problem.
…
…
…
… [2]
(c) Another type of flip-flop is the JK flip-flop.
A JK flip-flop is constructed as follows:
J
Q
Clock
Q
K
(i)
Complete this truth table for the JK flip-flop.
Initial
Final
values
values
Working space
Q
Q
J
K
Clock
Q
Q
0
0
1
1
0
1
0
0
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
0
1
[4]
(ii)
Explain why the JK flip-flop is an improvement on the SR flip-flop.
…
…
…
… [2]
(d) Explain the role of flip-flops in a computer.
…
…
…
… [2]

Advertisement