Computer Science 9618/21 — May/June 2021
Cambridge AS Level · Fundamental Problem-solving and Programming Skills · worked solutions for every part, with the mark scheme
Topics Data Types and Structures · Programming · Algorithm Design and Problem-solving · Software Development
Refer to the insert for the list of pseudocode functions and operators.
A program is being developed to help manage the membership of a football club.
Complete the following identifier table.
| Example value | Explanation | Variable name | Data type |
|---|---|---|---|
| "Wong" | The preferred name of the member joining the football club | ||
| FALSE | A value to indicate whether an existing member of the club lives at the same address | ||
| 19/02/1983 | When the member joined the football club | ||
| 1345 | The number of points a member has earned. Members of the club earn points for different activities. |
Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator.
Describe the error in each case, or write 'NO ERROR' if the statement contains no error.
You can assume that none of the variables referenced are of an incorrect type.
| Statement | Error |
|---|---|
Result ← 2 & 4 | |
SubString ← MID("pseudocode", 4, 1) | |
IF x = 3 OR 4 THEN | |
Result ← Status AND INT(x/2) | |
Message ← "Done" + LENGTH(MyString) |
The following data items need to be stored for each student in a group:
- student name (a string)
- test score (an integer).
State a suitable data structure and justify your answer.
Structure ...................................................................................................................................
Justification ...............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
The rest of this paper
6 more questions- Q2Software Development · Programming · Algorithm Design and Problem-solving13M
- Q3Data Types and Structures · Programming10M
- Q4Algorithm Design and Problem-solving · Programming10M
- Q5Data Types and Structures8M
- Q6Data Types and Structures6M
- Q7Programming · Data Types and Structures16M