Cambridge O Level ยท 2210 ยท Paper 2 ยท Algorithms, programming & logic
Computer Science 2210/22 May/June 2017 past paper
Cambridge O Level Computer Science (2210) Paper 2 (Algorithms, programming & logic), variant 2, May/June 2017: the question paper and its official mark scheme, 5 questions worth 50 marks. Free to open, no account needed.
- Questions
- 5
- Marks
- 50
File names: 2210_s17_qp_22 ยท 2210_s17_ms_22
Topics in this paper
Which syllabus chapters 2210/22 May/June 2017 tested, by marks. Each chapter links to every past-paper question on it.
| Chapter | Questions | Marks |
|---|---|---|
| Programming | 2 | 25 |
| Algorithm Design and Problem-Solving | 2 | 13 |
| Databases | 1 | 12 |
Questions in 2210/22 May/June 2017
- Question 1
(a) All variables, constants and other identifiers should have meaningful names. (i) For a variable that you have used to record information about the cost of the outing in Task 1, state the name, data type and its use. Variable โฆ
- Question 2
(a) Write an algorithm to input three different numbers, and then output the largest number. Use either pseudocode or a flowchart. (b) Give two sets of test data to use with your algorithm in part (a) and explain why you โฆ
- Question 3
This flowchart inputs the weight of items in kilograms to be loaded on a trailer. Any item over 25 kilograms is rejected. The trailer can take up to 100 kilograms. INPUT Weight TotalWeight 0 Reject 0 START END OUTPUT 'Weight โฆ
- Question 4
An algorithm has been written in pseudocode to input 100 numbers and print out the sum. A REPEAT UNTIL loop has been used. Count โ 0 Sum โ 0 REPEAT INPUT Number Sum โ Sum + Number Count โ Count โฆ
- Question 5
A database table, SHEEP, is used to keep a record of the sheep on a farm. Each sheep has a unique ear tag, EARnnnn; n is a single digit. The farmer keeps a record of the date of birth, the โฆ