Past-paper question · 2021 May-June · Paper 43 · Q2(a)

Question 2(a) 2021 · May-June · Paper 43 · 2 marks
Reveal official mark-scheme answer

Official answer for Question 2
Part (a)
Question 1
mark per bullet point
Question 2
- Array with identifier arrayData
- correct 10 data items added
✓
Example code:
✓
Visual Basic
✓
Dim arrayData(9) As Integer
✓
Sub Main()
✓
arrayData(0) = 10
✓
arrayData(1) = 5
✓
arrayData(2) = 6
✓
arrayData(3) = 7
✓
arrayData(4) = 1
✓
arrayData(5) = 12
✓
arrayData(6) = 13
✓
arrayData(7) = 15
✓
arrayData(8) = 21
✓
arrayData(9) = 8
✓
End Sub
✓
Python
✓
arrayData = [10, 5, 6, 7, 1, 12, 13, 15, 21, 8]
✓
Java
✓
int[] arrayData = new int[];
✓
public static void main(String[] args){
✓
arrayData[0] = 10;
✓
arrayData[1] = 5;
✓
arrayData[2] = 6;
✓
arrayData[3] = 7;
✓
arrayData[4] = 1;
✓
arrayData[5] = 12;
✓
arrayData[6] = 13;
✓
9618/43
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks
Show text version of question
Question 2
Part (a)
Question 2
A program stores the following ten integers in a 1D array with the identifier arrayData.
Part (a)
Write program code for a new program to:
- declare the global 1D array, arrayData, with ten elements
- initialise arrayData in the main program using the data values shown.
Save your program as question2.
Copy and paste the program code into part 2(a) in the evidence document.
[2]
Topic relevance
Why this question appears here
71% assigned-topic match · Data types and structures › Data types and records
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_s21_qp_43.pdf
Keep practising this topic
Related searches for this question
Computer Science For First Examination In 2021 9618 topical past papers
Computer Science For First Examination In 2021 9618 topical questions with answers
AS & A Level Computer Science For First Examination In 2021 topical past papers
Computer Science For First Examination In 2021 9618 Data types and structures topical questions
Data types and records past paper questions
Computer Science For First Examination In 2021 9618 2021 May-June question
