Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

MONTHLY TEST – JANUARY 2021

COMPUTER SCIENCE

9 (Cambridge) ..........

Duration : 2 periods

Instructions to Candidates : Answer all questions.


Do not use calculate.

Candidate's name: ........................................................................ Admission no : ..................


2

(1) The diagram below shows five logic gate symbols and five names.
Draw a line between each logic gate symbol and its correct name.

Logic Gate Symbol 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)

Grade 9 (Cambridge) Computer Science - January 2021


3

(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))

(a) Draw the logic circuit.

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.

The inputs to the system are:

Input Binary value Condition


1 pH > 7
A pH <=7
0

1 Temperature < 350 C


T Temperature > = 350 C
0
1 Pressure > = 80 %
P Pressure < 80 %
0

(a) The system will sound an alarm (X) when certain conditions are detected.

The alarm will sound when:

 The pressure > = 80% and the temperature > = 350 C

or

 The temperature < 350 C and the pH > 7

Grade 9 (Cambridge) Computer Science - January 2021


5

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]

Grade 9 (Cambridge) Computer Science - January 2021


6

(6) This section of program code may be used as a validation check.

(a) Give a name for this type of validation check.


-----------------------------------------------------------------------------------------------------------
(1 mark)
(b) Describe what is happening in this validation check.
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
(2 marks)

(c) Complete the trace table for this program code using the test data: 200, 300, -1, 50, 60

Value Output

(3 marks)

Grade 9 (Cambridge) Computer Science - January 2021


7

(d) Draw a flow chart to represent this section of program code.

(5 marks)
[ Total = 11 marks]

(7) Differentiate two type of programme errors with examples.

Syntax Errors Logic Errors

[Total =4 marks]

Grade 9 (Cambridge) Computer Science - January 2021


8

(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

Grade 9 (Cambridge) Computer Science - January 2021

You might also like