Cambridge O Level ยท 2210 ยท Paper 2 ยท Algorithms, programming & logic
Computer Science 2210/22 May/June 2018 past paper
Cambridge O Level Computer Science (2210) Paper 2 (Algorithms, programming & logic), variant 2, May/June 2018: 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_s18_qp_22 ยท 2210_s18_ms_22
Topics in this paper
Which syllabus chapters 2210/22 May/June 2018 tested, by marks. Each chapter links to every past-paper question on it.
| Chapter | Questions | Marks |
|---|---|---|
| Programming | 3 | 34 |
| Algorithm Design and Problem-Solving | 2 | 9 |
| Databases | 1 | 7 |
Questions in 2210/22 May/June 2018
- Question 1
(a) All variables, constants and other identifiers should have meaningful names. (i) State the name, the data type and the use of two variables that you have used in Task 2. Variable 1 name Data type Use Variable 2 name โฆ
- Question 2
(a) Draw a flowchart for an algorithm to input numbers. Reject any numbers that are negative and count how many numbers are positive. When the number zero is input, the process ends and the count of positive numbers is output. โฆ
- Question 3
This pseudocode algorithm inputs two non-zero numbers and a sign, and then performs the calculation shown by the sign. An input of zero for the first number terminates the process. INPUT Number1, Number2, Sign WHILE Number1 <> 0 IF Sign โฆ
- Question 4
A programmer has written a routine to store the name, email address and password of a contributor to a websiteโs discussion group. (a) The programmer has chosen to verify the name, email address and password. Explain why verification was chosen โฆ
- Question 5
A program checks that the weight of a basket of fruit is over 1.00 kilograms and under 1.10 kilograms. Weights are recorded to an accuracy of two decimal places and any weight not in this form has already been rejected. โฆ
- Question 6
A database table, TREES, is used to keep a record of the trees in a park. Each tree is given a unique number and is examined to see if it is at risk of dying. There are over 900 trees; โฆ