Computer Science 9618/22 — May/June 2021
Cambridge AS Level · Fundamental Problem-solving and Programming Skills · worked solutions for every part, with the mark scheme
8
questions
75
marks
120
minutes
Topics Data Types and Structures · Programming · Algorithm Design and Problem-solving · Software Development
Q1Data Types and StructuresProgrammingAlgorithm Design and Problem-solvingFree sample
Refer to the insert for the list of pseudocode functions and operators.
(a)
(i)
4M
Complete the following table by giving the appropriate data type in each case.
| Variable | Example data value | Data type |
|---|---|---|
| Name | "Catherine" | |
| Index | 100 | |
| Modified | FALSE | |
| Holiday | 25/12/2020 |
(ii)
4M
Evaluate each expression in the following table by using the initial data values shown in part (a)(i).
| Expression | Evaluates to |
|---|---|
| Modified OR Index > 100 | |
| LENGTH("Student: " & Name) | |
| INT(Index + 2.9) | |
| MID(Name, 1, 3) |
(b)
3M
Each pseudocode statement in the following table contains an example of selection, assignment or iteration.
Put one tick (‘✓’) in the appropriate column for each statement.
| Statement | Selection | Assignment | Iteration |
|---|---|---|---|
| Index ← Index + 1 | |||
| IF Modified = TRUE THEN | |||
| ENDWHILE |
The rest of this paper
7 more questions- Q2Software Development · Data Types and Structures11M
- Q3Data Types and Structures6M
- Q4Algorithm Design and Problem-solving · Programming6M
- Q5Data Types and Structures · Programming · Algorithm Design and Problem-solving15M
- Q6Programming · Data Types and Structures8M
- Q7Software Development5M
- Q8Data Types and Structures · Programming · Algorithm Design and Problem-solving13M
Loading the full paper…