Past-paper question · 2020 October-November · Paper 22 · Q1(c)

Question 1(c) 2020 · October-November · Paper 22 · 6 marks

Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Reveal official mark-scheme answer Official mark-scheme answer for 1(C)

Official answer for Question 1

Part (c)

✓
Any six from:

Question 6

✓
MP1
✓
At least one input (case, RAM, HDD)
✓
MP2
✓
All three inputs fully prompted
✓
MP3
✓
An attempt at validation of input
✓
MP4
✓
One complete validation of input with error message
✓
MP5
✓
Finding the price for one chosen item
✓
MP6
✓
Finding the prices of the other two chosen items correctly
✓
MP7
✓
Calculation of price of the chosen items
✓
MP8
✓
…add the basic components cost to the cost of the chosen items
✓
MP9
✓
Storage of chosen items
✓
MP10 Output to show chosen items and price of the computer (with
✓
appropriate message)
✓
Example answer:
✓
OUTPUT "Which type of Case would you like? Input the Item
✓
Code"
✓
ComponentFlag ← False
✓
WHILE ComponentFlag = False
✓
INPUT CaseCode
✓
Count ← 0
✓
WHILE Count<2 DO
✓
IF CaseCode = ComponentCode[Count]
✓
THEN
✓
CaseIndex ← Count
✓
ComponentFlag ← True
✓
Count ← 2
✓
ENDIF
✓
Count ← Count + 1
✓
ENDWHILE
✓
IF ComponentFlag = False
✓
THEN
✓
OUTPUT "Your case Item Code doesn’t exist, please
✓
try again"
✓
ENDIF
✓
ENDWHILE
✓
OUTPUT "Which type of RAM would you like? Input the Item
✓
Code"
✓
ComponentFlag ← False
✓
WHILE ComponentFlag = False
✓
INPUT RAMCode
✓
Count ← 2
✓
WHILE Count<5 DO
✓
IF RAMCode = ComponentCode[Count]
✓
THEN
✓
RAMIndex ← Count
✓
ComponentFlag ← True
✓
Count ← 5
✓
ENDIF
✓
Count ← Count + 1
✓
ENDWHILE
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2020
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w20_ms_22.pdf →

Show text version of question

Question 1

Part (c)

Question 1

All variables, constants and other identifiers must have meaningful names.

Part (c)

Write an algorithm to show how you completed Task 1, using either pseudocode,

programming statements or a flowchart. It is not necessary to show initialisation or setting up of arrays in your answer.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

Question 5

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[6]

Question 6

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 2210_w20_qp_22.pdf

Keep practising this topic