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

10 questions

0 / 0Answer a question to start your score.
New quizSaved 0

Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.

Advertisement
1
9608/32/O/N/17 · Question 2Oct/Nov 2017Paper 3212 marks
Loading question…
Question text

2
(a) The following diagram shows four descriptions and two types of processor.
Draw lines to connect each description to the appropriate type of processor.
Description
Type of processor
It has a simplified set of instructions.
Emphasis is on the hardware rather
CISC
than the software.
It makes extensive use of general
RISC
purpose registers.
Many instruction formats are available.
[4]
(b) In a RISC processor, instructions are processed using pipelining.
(i)
Explain what is meant by pipelining.
…
…
…
… [2]
(ii)
The following table shows the five stages that occur when instructions are fetched and
executed. The table also shows a number of time intervals.
Two instructions, D followed by E, are fetched and executed. The ‘E’ in the incomplete
table shows that instruction E has been fetched in time interval 2.
Complete each row of the table.
Time interval
Stage
1
2
3
4
5
6
7
8
Fetch instruction
E
Read registers and decode instruction
Execute instruction
Access operand in memory
Write result to register
[3]
(c) The instruction set for a RISC processor that allows pipelining includes the following
instruction.
Instruction
Explanation
Op code
Operands
Add the integers in registers op1 and op2.
ADD
<dest>, <op1>, <op2>
Place the result in register dest.
A program contains the following three instructions.
ADD r3, r2, r1
ADD r5, r4, r3
ADD r10, r9, r8
(i)
Explain why pipelining fails for the first two instructions.
…
…
…
… [2]
(ii)
The instructions were produced by a compiler after translation of a high-level language
program.
The compiler is not capable of code optimisation.
State how the code from the compiler could have been optimised to overcome the
problem in part (c)(i).
…
… [1]

2
9608/31/M/J/20 · Question 4May/June 2020Paper 318 marks
Loading question…
Question text

4
(a) Write the Boolean algebraic expressions for the following logic circuit.
P
X
Q
R
Y
X = …
…
Y = …
…
[5]
(b) The logic circuit given in part (a) is a full adder.
(i)
Give the purpose of outputs X and Y in this circuit.
X …
Y …
[2]
(ii)
Give the use of the input R in this circuit.
… [1]

3
9608/31/M/J/17 · Question 3May/June 2017Paper 3112 marks
Loading question…
Question text

3
Consider the following logic circuit, which contains a redundant logic gate.
A
X
B
C
(a) Write the Boolean algebraic expression corresponding to this logic circuit.
X = … [3]
(b) Complete the truth table for this logic circuit.
A
B
C
Working space
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]
(c) (i)
Complete the Karnaugh Map (K-map) for the truth table in part (b).
AB
00
01
11
10
0
C
1
[1]
The K-map can be used to simplify the expression in part (a).
(ii)
Draw loop(s) around appropriate groups to produce an optimal sum-of-products.
[2]
(iii)
Write a simplified sum-of-products expression, using your answer to part (ii).
X = … [2]
(d) One Boolean identity is:
̅
A + A.B
= A + B
Simplify the expression for X in part (a) to the expression for X in part (c)(iii). You should use
the given identity.
…
…
…
… [2]

Advertisement
4
9608/32/O/N/17 · Question 3Oct/Nov 2017Paper 3210 marks
Loading question…
Question text

3
(a) This diagram shows how applications P, Q and a software development environment can be
run on a virtual machine system.
Software
Application P
Application Q
development
environment
… A … operating
… A … operating system 1
system 2
Virtual machine software / virtual machine monitor
… B … operating system
Hardware
(i)
State the operating systems labelled A and B in the diagram.
A …
B …
[2]
(ii)
Application P is executing and requests data from a file.
Describe what happens after … A … operating system 1 has received the data request
from the application.
…
…
…
…
…
… [3]
(b) A software development company uses virtual machines to produce software.
(i)
State one benefit to the company.
…
… [1]
(ii)
Explain two limitations of this approach.
Limitation 1 …
…
…
…
Limitation 2 …
…
…
…
[4]

5
9608/31/M/J/16 · Question 3May/June 2016Paper 3110 marks
Loading question…
Question text

3
(a) The following diagram shows how applications X, Y and Z can run on a virtual machine
system.
Application X
Application Y
Application Z
Guest operating
Guest operating system 1
system 2
Virtual machine software / virtual machine monitor
Host operating system
Hardware
(i)
The virtual machine software undertakes many tasks.
Describe two of these tasks.
Task 1 …
…
Task 2 …
… [2]
(ii)
Explain the difference between a guest operating system and a host operating
system.
…
…
…
… [2]
(b) A company uses a computer as a web server. The manufacturer will no longer support the
computer’s operating system (OS) in six months’ time. The company will then need to decide
on a replacement OS.
The company is also considering changing the web server software when the OS is changed.
Whenever any changes are made, it is important that the web server service is not disrupted.
In developing these changes, the company could use virtual machines.
(i)
Describe two possible uses of virtual machines by the company.
Use 1 …
…
…
…
Use 2 …
…
…
… [4]
The web server often has to handle many simultaneous requests.
(ii)
The company uses a virtual machine to test possible solutions to the changes that they
will need to make.
Explain one limitation of this approach.
…
…
…
… [2]

6
9608/31/M/J/16 · Question 5May/June 2016Paper 3112 marks
Loading question…
Question text

5
(a) Complete the truth table for this NAND gate:
A
B
X
0
0
A
0
1
X
B
1
0
1
1
[1]
A SR flip-flop is constructed using two NAND gates.
S
Q
Q
R
(b) (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
[4]
(ii)
One of the combinations in the truth table should not be allowed to occur.
State the values of S and R that should not be allowed. Justify your choice.
S = …
R = …
…
…
…
… [3]
Another type of flip-flop is the JK flip-flop.
(c) (i)
Give one extra input present in the JK flip-flop.
…
… [1]
(ii)
Give one advantage of the JK flip-flop.
…
… [1]
(d) Describe the role of flip-flops in a computer.
…
…
…
… [2]

7
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]

8
9608/32/M/J/19 · Question 7May/June 2019Paper 3210 marks
Loading question…
Question text

7
(a) RISC (Reduced Instruction Set Computing) and CISC (Complex Instruction Set Computing)
are two types of processor.
Tick (3) one box in each row to show if the statement applies to RISC or CISC processors.
Statement
RISC
CISC
Larger instruction set
Variable length instructions
Smaller number of instruction formats
Pipelining is easier
Microprogrammed control unit
Multi-cycle instructions
[3]
(b) In parallel processing, a computer can have multiple processors running in parallel.
(i)
State the four basic computer architectures used in parallel processing.
1 …
2 …
3 …
4 …
[4]
(ii)
Describe what is meant by a massively parallel computer.
…
…
…
…
…
… [3]

Advertisement
9
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]

10
9608/32/O/N/16 · Question 5Oct/Nov 2016Paper 3213 marks
Loading question…
Question text

5
(a) (i)
A half adder is a logic circuit with the following truth table.
Input
Output
X
Y
A
B
0
0
0
0
0
1
0
1
1
0
0
1
1
1
1
0
The following logic circuit is constructed.
P
X
A
J
HALF ADDER
Q
Y
B
X
A
HALF ADDER
R
K
Y
B
Complete the following truth table for this logic circuit.
Input
Working space
Output
P
Q
R
J
K
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)
State the name given to this logic circuit.
… [1]
(iii)
Name the labels usually given to J and K.
Label J …
Label K …
Explain why your answers are appropriate labels for these outputs.
…
…
…
… [4]
(b) (i)
Write down the Boolean expression corresponding to the following logic circuit:
A
B
X
C
… [2]
(ii) Use Boolean algebra to simplify the expression given in part (b)(i).
Show your working.
…
…
…
…
…
… [4]

Advertisement