Past-paper question · 2024 May-June · Paper 41 · Q1(a)

Question 1(a) 2024 · May-June · Paper 41 · 1 mark

Original past-paper question for 1(A)
Original past-paper question for 1(A)
Reveal official mark-scheme answer Official mark-scheme answer for 1(A)

Official answer for Question 1

Part (a)

Question 1

mark for:

Question 1

✓
Declaration of (global) array with identifier DataStored (Integer and 20 spaces)
✓
and NumberItems (Integer)
✓
e.g.
✓
Java
✓
public static Integer[] DataStored = new Integer[20];
✓
public static Integer NumberItems= 0;
✓
VB.NET
✓
Dim DataStored(19) As Integer
✓
Dim NumberStored As Integer = 0
✓
Python
✓
global DataStored #integer
✓
global NumberItems #Integer 20 items
✓
9618/41
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_41.pdf →

Show text version of question

Question 1

Part (a)

Question 1

A program needs to take integer numbers as input, sort the numbers and then search for a specific

number.

Part (a)

The integer numbers will be stored in the global 1D array, DataStored, with space for up to

20 integers.

The global variable NumberItems stores the quantity of items the array contains.

Write program code to declare DataStored and NumberItems.

Save your program as Question1_J24.

Copy and paste the program code into part 1(a) in the evidence document.

[1]
Topic relevance

Why this question appears here

71% 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_41.pdf

Keep practising this topic