0% found this document useful (0 votes)
389 views2 pages

AS 9618 Practice Test P2

This document is a practice test paper for A Level Computer Science. It contains 5 questions testing key concepts in computer science. Question 1 defines terms like flowchart, pseudocode and structured English. Question 2 uses pseudocode to check if a number is between 20-40 or over 150. Question 3 writes pseudocode for a post-condition loop to output even numbers between 100-200. Question 4 identifies the appropriate data type for different variables. Question 5 declares a 1D array and uses pseudocode to assign random values between 1-100 and count those greater than 55.

Uploaded by

segdeadeyeyt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
389 views2 pages

AS 9618 Practice Test P2

This document is a practice test paper for A Level Computer Science. It contains 5 questions testing key concepts in computer science. Question 1 defines terms like flowchart, pseudocode and structured English. Question 2 uses pseudocode to check if a number is between 20-40 or over 150. Question 3 writes pseudocode for a post-condition loop to output even numbers between 100-200. Question 4 identifies the appropriate data type for different variables. Question 5 declares a 1D array and uses pseudocode to assign random values between 1-100 and count those greater than 55.

Uploaded by

segdeadeyeyt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Fravashi International Academy A Level 2023

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]

5) Declare a 1D array Tot_Numbers of 50 elements of type INTEGER


• assign each element a random value in the range 1 to 100 inclusive
• count and output how many numbers are greater than 55
(i) Write pseudocode to represent the algorithm

...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
..................................................................................................................................... [6]

You might also like