Past-paper question · 2015 May-June · Paper 23 · Q4(b)(iv)

Question 4(b)(iv) 2015 · May-June · Paper 23 · 1 mark

Original past-paper question for 4(B)(IV)
Original past-paper question for 4(B)(IV)
Original past-paper question for 4(B)(IV)
Reveal official mark-scheme answer Official mark-scheme answer for 4(B)(IV)Official mark-scheme answer for 4(B)(IV)

Official answer for Question 4

Part (b)

(iv)

(iv)

Append // Illustrated with program code statement

[1]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – May/June 2015
✓
9608

Question 23

Mark scheme 9608_s15_ms_23.pdf →

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.

A
country has a number of banks. There are cash dispensers all over the country. Each bank

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
A
text file, DISPENSERS, is to be created.

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

Topic relevance

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

Keep practising this topic