Cambridge O Level ยท 2210 ยท Paper 2 ยท Algorithms, programming & logic
Computer Science 2210/22 May/June 2021 past paper
Cambridge O Level Computer Science (2210) Paper 2 (Algorithms, programming & logic), variant 2, May/June 2021: the question paper and its official mark scheme, 6 questions worth 50 marks. Free to open, no account needed.
- Questions
- 6
- Marks
- 50
File names: 2210_s21_qp_22 ยท 2210_s21_ms_22
Topics in this paper
Which syllabus chapters 2210/22 May/June 2021 tested, by marks. Each chapter links to every past-paper question on it.
| Chapter | Questions | Marks |
|---|---|---|
| Scenario Question | 1 | 20 |
| Databases | 3 | 16 |
| Algorithm Design and Problem-Solving | 2 | 14 |
Questions in 2210/22 May/June 2021
- Question 1
All variables, constants and other identifiers must have meaningful names. (a) Identify and give the data type and use of one array that you could have used for Task 1. Array Data type Use (b) Describe two validation checks that โฆ
- Question 2
(a) Write an algorithm in pseudocode to input 500 positive whole numbers. Each number input must be less than 1000. Find and output the largest number input, the smallest number input and the range (difference between the largest number and โฆ
- Question 3
(a) Draw the most appropriate flowchart symbol for each pseudocode statement. Pseudocode statement Flowchart symbol IF Number = 20 PRINT Number Number โ Number โฆ
- Question 4
This algorithm checks passwords. โข Each password must be 8 or more characters in length; the predefined function Length returns the number of characters. โข Each password is entered twice, and the two entries must match. โข Either Accept or โฆ
- Question 5
A one-dimensional array dataArray[1:20] needs each element set to zero. (a) Write a pseudocode routine that sets each element to zero. Use the most suitable loop structure. (b) Explain why you chose this loop structure.
- Question 6
A database table, PLANT, is used to keep a record of plants sold by a nursery. The table has these fields: โข NAME โ name of plant โข FLOWER โ whether the plant flowers (True) or not (False) โข POSITION โฆ