Computer Science 0478 · 8

8.2 Arrays

33 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2023 October-November · Paper 22 · Q3(b)

Arrays · 4 marks · official answer ready

(b) A one‑dimensional (1D) array called Temperatures[] has 25 elements beginning at index 1. It holds values that range between –20 and 100 inclusive. Write a pseudocode algorithm…

2023 October-November · Paper 22 · Q11

Arrays · 15 marks · official answer ready

11 A wood flooring company stores the names of up to 100 customers in a one‑dimensional (1D) array Customers[]. A two‑dimensional (2D) array Quotations[] stores details of each cu…

2023 October-November · Paper 23 · Q10

Arrays · 15 marks · official answer ready

10 A weather station takes temperature readings once an hour for a week. These temperatures are stored in a two-dimensional (2D) array Temperatures[] Each column contains 24 readi…

2023 May-June · Paper 21 · Q11

Arrays · 15 marks · official answer ready

11 A one-dimensional (1D) array Days[] contains the names of the days of the week. A two-dimensional (2D) array Readings[] is used to store 24 temperature readings, taken once an …

2023 May-June · Paper 21 · Q13(c)

Arrays · 23 marks

(c) Describe one problem that could occur with this algorithm if an invalid character was input. ..................................................................................…

2023 May-June · Paper 23 · Q11

Arrays · 15 marks · official answer ready

11 A two-dimensional (2D) array Contacts[] is used to store names and telephone numbers. All the data is stored as strings. The array must have the capacity to store 100 contacts …

2023 February-March · Paper 22 · Q2(b)

Arrays · 5 marks · official answer ready

(b) Write an algorithm in pseudocode, using a single loop, to output the average of 50 numbers that have been stored in the array Number[] ........................................…

2023 February-March · Paper 22 · Q11

Arrays · 15 marks · official answer ready

11 The one-dimensional (1D) array TeamName[] contains the names of teams in a sports league. The two-dimensional (2D) array TeamPoints[] contains the points awarded for each match…

2022 October-November · Paper 21 · Q1(a)(i)

Arrays · 5 marks · official answer ready

(i) Describe the arrays you have set up in Task 1 to record the members’ details. Include in your description the name, data type and sample data for each array. .................…

2022 October-November · Paper 22 · Q5(b)

Arrays · 4 marks · official answer ready

(b) The corrected algorithm needs to be changed so that any number of marks may be entered and the algorithm runs until the user tells it to stop. Write the new pseudocode stateme…

2022 May-June · Paper 21 · Q4(b)

Arrays · 4 marks · official answer ready

(b) Write a pseudocode routine that will check that each test result entered into the algorithm is between 0 and 100 inclusive. ...................................................…

2022 May-June · Paper 22 · Q3(a)

Arrays · 3 marks · official answer ready

3 (a) Describe a one-dimensional array. Include an example of an array declaration. ...............................................................................................…

2022 May-June · Paper 22 · Q3(b)

Arrays · 2 marks · official answer ready

(b) Explain how indexing could be used to search for a value stored in a one-dimensional array. ...................................................................................…