Hardware: logic circuits, Boolean algebra and processors – A Level Computer Science (old syllabus, to 2021) (9608)
10 questions · Clear filters
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]
Question text
5
Complete these three statements about computer processors.
A processor with a few simple fixed-length instructions that have a small number of instruction
formats is called a … processor.
A processor with many complex variable-length instructions that has many instruction formats is
called a … processor.
Instruction-level parallelism, applied to the execution of instructions during the fetch-execute cycle,
is called … .
[3]
Question text
3
(a) The following logic circuit can be simplified to use only one gate.
A
X
B
Give the name of this single gate.
… [1]
(b) (i)
Complete the truth table for the logic circuit.
A
X
B
Y
Working space
A
B
X
Y
0
0
0
1
1
0
1
1
[2]
(ii)
Give the name of the logic circuit that has this truth table.
… [1]
(iii)
Give the uses for outputs X and Y.
X …
Y …
[2]
(c) Consider the following Boolean algebraic expression:
A . B . C . D + A . B . C . D + A . B . C . D + A . B . C . D + A . B . C . D
Use Boolean algebra to simplify the expression. Show your working.
Working
…
…
…
…
…
…
…
…
…
Simplified expression
… [5]
Question text
3
(a) A Boolean algebraic 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)
Complete the Karnaugh Map (K-map) for the truth table.
AB
00
01
11
10
0
C
1
[1]
The K-map can be used to simplify the expression that produced the truth table in part (a).
(ii)
Draw loops around appropriate groups of 1s in the K-map to produce an optimal sum-of-
products.
[2]
(iii)
Write the simplified sum-of-products Boolean expression for the truth table.
X = … [2]
(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
1
0
0
1
1
1
0
1
0
0
0
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
1
0
0
0
1
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
0
1
1
1
1
0
(i)
Complete the K-map for the truth table.
AB
CD
[4]
(ii)
Draw loops around appropriate groups of 1s in the K-map to produce an optimal
sum-of-products.
[2]
(iii)
Write the simplified sum-of-products Boolean algebraic expression for the truth table.
X = … [2]
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]
Question text
4
(a) A Boolean expression produces the following truth table.
INPUT
OUTPUT
A
B
C
X
0
0
0
0
0
0
1
0
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 as a sum-of-products.
X = … [2]
(ii)
Complete the Karnaugh Map (K-map) for the truth table in part (a)(i).
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 group(s) of 1s to produce an optimal sum-of-products
for the table in part (a)(ii).
[2]
(iv)
Write the simplified sum-of-products expression for your answer to part (a)(iii).
X = … [2]
(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
1
0
1
1
0
1
0
1
1
1
1
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
0
1
1
1
1
0
(i)
Complete the K-map that corresponds to the truth table.
AB
CD
[4]
(ii)
Draw loop(s) around appropriate group(s) of 1s to produce an optimal sum-of-products
for the table in part (b)(i).
[2]
(iii)
Write the simplified sum-of-products expression for your answer to part (b)(ii).
X = … [2]
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]
Question text
3
A logic circuit is shown:
P
S
Q
R
(a) Write the Boolean algebraic expression corresponding to this logic circuit:
S = … [4]
(b) Complete the truth table for this logic circuit:
P
Q
R
Working space
S
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).
PQ
00
01
11
10
0
R
1
[1]
The K-map can be used to simplify the function in part (a).
(ii)
Draw loop(s) around appropriate groups to produce an optimal sum-of-products.
[1]
(iii)
Write a simplified sum-of-products expression, using your answer to part (ii).
S = … [1]
(d) One Boolean identity is:
(A + B) . C = A . C + B . C
Simplify the expression for S in part (a) to the expression for S in part (c)(iii).
You should use the given identity and De Morgan’s Laws.
…
…
…
…
…
…
…
… [3]
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]
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]