AS 9618 Practice Test P2
AS 9618 Practice Test P2
2022 – 2023
Computer Science (9618)
Practice Test Paper 2 Marks: 25
Candidate Name: _________________________________________ Section: ________
1) Define the term (i) Flowchart and (ii) Pseudocode, (iii) structured English
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................[6]
2) Using pseudocode, write statements to check that a number input is between 20 and 40
or over 150. Make use of brackets to ensure that the order of the comparisons is
clear.
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
..................................................................................................................................[4]
3) Write in pseudocode a post-condition loop to output all the even numbers between 100
and 200.
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
.......................................................................................................................................
..................................................................................................................................[4]
4) Program variables have values as follows, Write appropriate data type for each variable
Variable Value Data Type
Day “Monday”
Score 54
Capacity 75.25
Status FALSE
Allowed ‘Y’
[5]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [6]