9618/22

Computer Science 9618/22October/November 2022

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 Programming · Algorithm Design and Problem-solving · Software Development · Data Types and Structures

Q1Algorithm Design and Problem-solvingProgrammingSoftware DevelopmentFree sample

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

(a)

A programmer is developing an algorithm to solve a problem. Part of the algorithm would be appropriate to implement as a subroutine (a procedure or a function).

(i)

State two reasons why the programmer may decide to use a subroutine.

1 ........................................................................................................................................

2 ........................................................................................................................................

2M
(ii)

A procedure header is shown in pseudocode:

PROCEDURE MyProc(Count : INTEGER, Message : STRING)

Give the correct term for the identifiers Count and Message and explain their use.

Term ..................................................................................................................................

Use ....................................................................................................................................

2M
(b)

The algorithm in part (a) is part of a program that will be sold to the public.
All the software errors that were identified during in-house testing have been corrected.

Identify and describe the additional test stage that may be carried out before the program is sold to the public.

Test stage .................................................................................................................................

Description ................................................................................................................................

4M
(c)

Part of an identifier table is shown:

VariableTypeExample value
FlagDayDATE23/04/2004
CharListSTRING"ABCDEF"
CountINTEGER29

Complete the table by evaluating each expression using the example values.

ExpressionEvaluation
MID(CharList, MONTH(FlagDay), 1)
INT(Count / LENGTH(CharList))
(Count >= 29) AND (DAY(FlagDay) > 23)
3M

The rest of this paper

6 more questions
  • Q2Algorithm Design and Problem-solving · Data Types and Structures · Software Development11M
  • Q3Data Types and Structures13M
  • Q4Algorithm Design and Problem-solving · Programming7M
  • Q5Algorithm Design and Problem-solving · Programming4M
  • Q6Programming · Software Development11M
  • Q7Programming · Data Types and Structures18M
Loading the full paper…