9618/23

Computer Science 9618/23October/November 2023

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

Q1Data Types and StructuresProgrammingSoftware DevelopmentFree sample

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

A program is being developed in pseudocode before being converted into a programming language.

(a)

The following table shows four valid pseudocode assignment statements.

Complete the table by giving the data type that should be used to declare the variable underlined in each assignment statement.

Assignment statementData type
MyVar1Total1 / Total2
MyVar227/10/2023
MyVar3"Sum1 / Sum2"
MyVar4Result1 AND Result2
4M
(b)

Other variables in the program have example values as shown:

VariableValue
ActiveTRUE
Fraction0.2
Code"Ab12345"

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

ExpressionEvaluates to
Fraction >= 0.2 AND NOT Active
INT((Fraction * 100) + 13.3)
STR_TO_NUM(MID(Code, 4, 2)) + 5
LENGTH("TRUE" & Code)
4M
(c)

The program makes use of complex statistical functions. The required functions are not built-in to the programming language and are too complicated for the programmer to write.

One solution would be to employ another programmer who has experience of writing these functions, as there is no time to train the existing programmer.

State one other way that these functions may be provided for inclusion in the program.

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

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

1M
(d)

The hardware that runs the program is changed and the program needs to be modified so that it works with the new hardware.

Identify the type of maintenance that this represents and give one other reason why this type of maintenance may be needed.

Type ..........................................................................................................................................

Reason .....................................................................................................................................

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

2M

The rest of this paper

7 more questions
  • Q2Algorithm Design and Problem-solving · Data Types and Structures9M
  • Q3Data Types and Structures · Programming9M
  • Q4Programming · Algorithm Design and Problem-solving7M
  • Q5Data Types and Structures · Programming6M
  • Q6Programming6M
  • Q7Software Development · Data Types and Structures · Programming7M
  • Q8Data Types and Structures · Programming · Software Development · Algorithm Design and Problem-solving20M
Loading the full paper…