Professional Documents
Culture Documents
Computing Yr10 Opt 2022
Computing Yr10 Opt 2022
Directions to candidates:
Answer ALL questions on this paper.
The use of a flow chart template is permitted.
Calculators are NOT allowed.
Paper Course
QUES 1 2 3 4 5 6 7 8 Final Mark
Total Work
MARK
[2]
[1]
Step 1: [1]
Step 2: [1]
Step 3: [1]
Step 4: [1]
Having a test plan including valid, invalid, and extreme test data. [1]
Having a direct changeover from the old to the new system. [1]
Having the same people who developed the program testing it. [1]
Dry running the program with the help of a trace table. [1]
c. Considering that the new system is ready for distribution, is the software
developer right in concluding that there are no syntax errors left in the
code? Explain.
[1]
d. Once the system is up and running the team will engage in the Control
and Review stage. Are the below processes part of this stage? Tick the
correct statement/s.
[Flowchart here]
[3]
Line 5: [1]
Line 7: [1]
[1]
iii. The ‘if’ condition is calling method validatePost(). Tick the correct
method declaration for validatePost(). [1]
void validatePost(post)
[1]
b. Once they are happy with their design, which output device from the
ones listed below would students use to physically produce their mascot
in plastic?
[2]
[1]
[1]
[1]
[1]
[1]
[2]
d. The CPU makes use of several registers. Briefly explain the role of the
following registers:
i. Program Counter:
[1]
6. An instruction set is a list of all the instructions that a processor can execute.
Some of these instructions include:
- arithmetic operations, such as add and subtract, and
- logical operations such as AND, OR and NOT.
Working here.
[1]
ii. Show the contents of the Accumulator after a shifted right operation.
Working here.
[1]
Computing – Year 10 – 2022 Page 7 of 12
iii. Convert your answer in (ii) to decimal. Show your working.
Working here.
[1]
[2]
ii. Is your answer in part b(i) above the One’s Complement or Two’s
Complement of 101110002?
[1]
Working here.
[1]
d. Subtract 4310 from 9210 using 8-bit two’s complement register. Show
your working.
Working here.
[3]
Page 8 of 12 Computing – Year 10 – 2022
7. A logic gate is a device that acts as a building block for digital circuits.
a. Match the following gates with their symbol and truth table.
A X A B X A B X
0 1 0 0 0 0 0 0
1 0 0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
i. Complete the incomplete truth table for the circuit shown below.
A B C X
0 0
0 1
1 0
1 1 [2]
A B out
0 0
0 1
1 0
1 1 [1]
d. Consider the logic circuit shown below and answer the questions that follow.
v. According to your answers in part ii, iii, and iv above, suggest the
function of the above logic circuit.
[1]
i. Symbol 1: [1]
v. Symbol 5: [1]
b. Method enterData() asks the user to enter five readings for the height
and five readings for the time it takes for an object to fall. Analyse the
incomplete code shown below, and complete the code for method
enterData() in the space provided on the next page.
void enterData(){
[3]
ii. Include comments in lines 4, 10 and 12 to make the code more readable.
Line 4: [1]
Line 9: [1]
Line 12: [1]