Question 4(b)(iv) 2015 · May-June · Paper 23 · 1 mark
Reveal official mark-scheme answer

Official answer for Question 4
Part (b)
(iv)
(iv)
Append // Illustrated with program code statement
Question 23
Show text version of question
Question 4
Part (b)
(iv)
Question 4
A programming language has the built-in function CONCAT defined as follows:
CONCAT(String1 : STRING, String2 : STRING [, String3 : STRING] ) RETURNS STRING For example: CONCAT("San", "Francisco") returns "SanFrancisco" CONCAT("New", "York", "City") returns "NewYorkCity"
The use of the square brackets indicates that the parameter is optional.
is responsible for a number of dispensers.
- banks have a three digit code in the range 001 – 999
- each dispenser has a five digit code in the range 00001 – 99999
It has one line of text for each dispenser. For example: 00342▼007.
This line in the file is the data for dispenser 00342 which belongs to bank 007.
Incomplete pseudocode follows for the creation of the file DISPENSERS.
Question 9
For the creation of the file, data is entered by the user at the keyboard.
(iv)
Give the ‘file mode’ available in the programming language which will be used to address
this issue.
.......................................................................................................................................[1]
Question 10
Why this question appears here
71% assigned-topic match · Programming › Structured programming
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_s15_qp_23.pdf
