Teacher LoginStart Learning
HomeFeaturesHow It WorksPricingResourcesPast Papers
Grammar LabStart Learning
All chapters
Computer Science 2210 · Cambridge (CAIE) O Level

Arrays

7 past-paper questions on Arrays · examined 2020–2025.

20251 question

2210/23 · O/N · Q10 [15]Sign up to mark my answer →

Write a program that meets the following requirements: input and validate the names of the two players; generate 100 random whole numbers between 1 and 6 inclusive for each player and store them in the array NumberGenerated[]; calculate and store the total number of points for each player; output the name and total number of points for each player in descending order of total number of points.

20241 question

2210/23 · O/N · Q12 [15]Sign up to mark my answer →

Write a program that meets the following requirements: allows the weight of members’ picks to be input and validated, sorts the arrays PickedWeight[] and PickerName[] in descending order of weight, outputs the member names and the pick weights of the members with the two heaviest picks and identifies them as “Best in Group” and “Second best in Group”, stores the names of all the members who will receive a certificate in the array PickerCertificate[], outputs a message stating the number of certificates to be printed.

20231 question

2210/22 · O/N · Q11 [15]Sign up to mark my answer →

Write a program that meets the following requirements: • input a new customer’s name, room length and room width • check that each measurement is valid • output an error message and require the measurement to be re-entered until it is valid • calculate the area of the room by multiplying together the length of the room and the width of the room • input the choice of wood and find its price per square metre • calculate the price of the wood needed • store all data in the relevant array • output the customer’s quotation to include: the name of the customer, the choice of wood and the calculated

20223 questions

2210/21 · M/J · Q1(a) [5]Sign up to mark my answer →

Describe the data structures you could have used in Task 1. Your description should include types of data structure, names used for data structures, their uses and examples of sample data.

2210/22 · M/J · Q3(a) [3]Sign up to mark my answer →

Describe a one-dimensional array. Include an example of an array declaration.

2210/22 · M/J · Q3(b) [2]Sign up to mark my answer →

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

20201 question

2210/22 · M/J · Q5 [3]Sign up to mark my answer →

Explain what is meant by the terms dimension and index in an array. Use examples of arrays in your explanations.

Go Pro to download this chapter as a topical PDF and search by AI.

AI Examiner

Don't just read the solution — get your own answer marked

Write your answer to any Computer Science past-paper question, photograph it, and Learning DEN marks it like a real examiner — marks awarded, where you lost them, and your predicted grade. 3 free gradings to start.