9618/21

Computer Science 9618/21May/June 2021

Cambridge AS Level · Fundamental Problem-solving and Programming Skills · worked solutions for every part, with the mark scheme

7
questions
75
marks
120
minutes

Topics Data Types and Structures · Programming · Algorithm Design and Problem-solving · Software Development

Q1Algorithm Design and Problem-solvingData Types and StructuresProgrammingFree sample

Refer to the insert for the list of pseudocode functions and operators.

(a)

A program is being developed to help manage the membership of a football club.

Complete the following identifier table.

Example valueExplanationVariable nameData type
"Wong"The preferred name of the member joining the football club
FALSEA value to indicate whether an existing member of the club lives at the same address
19/02/1983When the member joined the football club
1345The number of points a member has earned. Members of the club earn points for different activities.
4M
(b)

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.

StatementError
Result ← 2 & 4
SubString ← MID("pseudocode", 4, 1)
IF x = 3 OR 4 THEN
Result ← Status AND INT(x/2)
Message ← "Done" + LENGTH(MyString)
5M
(c)

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 ...............................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

3M

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
Loading the full paper…