Computer Science
Computer Science
COMPUTER SCIENCE
9 (Cambridge) ..........
Duration : 2 periods
(1) The diagram below shows five logic gate symbols and five names.
Draw a line between each logic gate symbol and its correct name.
AND
NOT
NOR
XOR
NAND
[Total = 5 marks]
(2) (a) Complete the truth table for the NOR gate.
A
X
B A
A
A B Output (x)
0 0
0 1
1 0
1 1
(1 marks)
(b) Write a logic statement that corresponds with the following logic circuit.
A
B
X = --------------------------------------------------------------------------------------------------
(3 marks)
[ Total = 4 marks]
(3) For the logic statement.
X = 1 if (( A is 1 AND B is 1) OR (B is 1 AND C is NOT 1))
X
B
C
C
(4 marks)
Grade 9 (Cambridge) Computer Science - January 2021
4
(b) Complete the truth table for the given logic statement.
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
(4 marks)
[Total = 8 marks]
(4) A factory that manufactures cleaning products has a system that monitors conditions
throughout the manufacturing process.
(a) The system will sound an alarm (X) when certain conditions are detected.
or
Draw a logic circuit to represent the alarm system in the factory. Each logic gate must
have a maximum of two inputs.
[Total =4 marks]
(5) Complete the following table by drawing 5 flow chart symbols and each of their functions.
The first one has been done for you.
Symbol Function
Start / End
[Total =4 marks]
(c) Complete the trace table for this program code using the test data: 200, 300, -1, 50, 60
Value Output
(3 marks)
(5 marks)
[ Total = 11 marks]
[Total =4 marks]
(8) In a computing examination, papers are marked out of 75. The minimum mark a student can
obtain is 0.
(a) Give 2 type of validation checks that can be used with the above scenario.
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
(2 marks)
(b) Give a set of normal data to test the given validation check. Give reasons for your choice.
Data set : -----------------------------------------------------------------------------------------
(1 mark)
Reason for the choice : -----------------------------------------------------------------------
(1 mark)
(c) Give a set of abnormal data to test the given validation check. Give reasons for your
choice.
Data set : -----------------------------------------------------------------------------------------
(1 mark)
Reason for the choice : -----------------------------------------------------------------------
(1 mark)
(d) Give a set of extreme data to test the given validation check. Give reasons for your
choice.
Data set : -----------------------------------------------------------------------------------------
(1 mark)
Reason for the choice : -----------------------------------------------------------------------
(1 mark)
(e) Give two type of verification methods.
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
(2 marks)
[Total = 10 marks]
END
Ref : KA / AP