9618/22

Computer Science 9618/22May/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)

Complete the following table by giving the appropriate data type in each case.

VariableExample data valueData type
Name"Catherine"
Index100
ModifiedFALSE
Holiday25/12/2020
4M
(ii)

Evaluate each expression in the following table by using the initial data values shown in part (a)(i).

ExpressionEvaluates to
Modified OR Index > 100
LENGTH("Student: " & Name)
INT(Index + 2.9)
MID(Name, 1, 3)
4M
(b)

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.

StatementSelectionAssignmentIteration
Index ← Index + 1
IF Modified = TRUE THEN
ENDWHILE
3M

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…