Past-paper question · 2024 May-June · Paper 23 · Q4(b)(ii)

Question 4(b)(ii) 2024 · May-June · Paper 23 · 3 marks

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

Official answer for Question 4

Part (b)

(ii)

✓
One mark per point:

Question 3

Question 1

✓
(Multiple instances referenced via a single identifier so) fewer identifiers
✓
needed

Question 2

✓
Easier to process / search / organise / access the data // Values may be
✓
accessed via a loop-controlled variable /an index //An array / data can be
✓
iterated through

Question 3

✓
Makes the program/algorithm easier to write / design / understand /
✓
maintain / modify // Simplifies the program // Easier to debug / test
✓
9618/23
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_23.pdf →

Show text version of question

Question 4

Part (b)

(ii)

Question 4

A procedure TwoParts() will input a sequence of real values, one at a time.

The procedure will:

  • process the sequence in two parts
  • form a first total by adding the values until the first zero
  • form a second total by adding the values after the first zero until the second zero
  • output the average of the two totals, together with a suitable message.

Values input in the first part are totalled using global variable TotalA and those input in the second part are totalled using global variable TotalB.

The value zero denotes the split between the two parts of the sequence.

The requirement changes and now there may be up to 20 parts.

(ii)

Describe three benefits of using the data structure given in part (b)(i).

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

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

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

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

3 ........................................................................................................................................

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

[3]

Question 10

, ,

Topic relevance

Why this question appears here

82% assigned-topic match · Programming › Programming basics

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 9618_s24_qp_23.pdf

Keep practising this topic