Past-paper question · 2018 October-November · Paper 23 · Q1(b)

Question 1(b) 2018 · October-November · Paper 23 · 4 marks

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

Official answer for Question 1

Part (b)

✓
Any four from:

Question 4

  • Loop to search all log cabins // loop to search all weeks
  • Method to search all weeks // method to search all log cabins
  • Check that value in array is blank/zero/false for each log cabin
✓
•
✓
every week
  • Output the name and capacity of each free log cabin
✓
•
✓
show the week number for that cabin
✓
Example
✓
FOR Cabin ← 0 TO 9
✓
IF Booking23[Cabin] =
✓
""
✓
THEN
✓
OUTPUT "Week 23
✓
", " Cabin ", CabinName[Cabin] " Capacity ", Capacity[Cabin]
✓
ENDIF
✓
IF Booking24[Cabin] =
✓
""
✓
THEN
✓
OUTPUT "Week 24
✓
", " Cabin ", CabinName[Cabin] " Capacity ", Capacity[Cabin]
✓
ENDIF
✓
IF Booking25[Cabin] =
✓
""
✓
THEN
✓
OUTPUT "Week 25
✓
", " Cabin ", CabinName[Cabin] " Capacity ", Capacity[Cabin]
✓
ENDIF
✓
IF Booking26[Cabin] =
✓
""
✓
THEN
✓
OUTPUT "Week 26
✓
", " Cabin ", CabinName[Cabin] " Capacity ", Capacity[Cabin]
✓
ENDIF
✓
IF Booking27[Cabin] =
✓
""
✓
THEN
✓
OUTPUT "Week 27
✓
", " Cabin ", CabinName[Cabin] " Capacity ", Capacity[Cabin]
✓
ENDIF
✓
IF Booking28[Cabin] =
✓
""
✓
THEN
✓
OUTPUT "Week 28
✓
", " Cabin ", CabinName[Cabin] " Capacity ", Capacity[Cabin]
✓
ENDIF
✓
2210/23
✓
Cambridge O Level – Mark Scheme
✓
October/November 2018
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w18_ms_23.pdf →

Show text version of question

Question 1

Part (b)

Part (b)

Write an algorithm to show how your program finds and displays the weeks available for

each log cabin and its capacity (part of Task 2), using either pseudocode, programming statements or a flowchart.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...............................................................................................................................................[4]

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_w18_qp_23.pdf

Keep practising this topic