8.2 Arrays
33 questions in this subtopic. Open a question to solve it and check the official answer.
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…
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…
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…
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 …
Arrays · 23 marks
(c) Describe one problem that could occur with this algorithm if an invalid character was input. ..................................................................................…
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 …
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[] ........................................…
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…
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. .................…
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…
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. ...................................................…
Arrays · 3 marks · official answer ready
3 (a) Describe a one-dimensional array. Include an example of an array declaration. ...............................................................................................…
Arrays · 2 marks · official answer ready
(b) Explain how indexing could be used to search for a value stored in a one-dimensional array. ...................................................................................…
