Past-paper question · 2016 May-June · Paper 21 · Q1(b)

Question 1(b) 2016 · May-June · Paper 21 · 5 marks

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 mark-scheme answer for 1(B)

Official answer for Question 1

Part (b)

Part (b)

Any 5 from:

  • input length, breadth, height and weight
  • check each dimension, not more than 80
  • check total of dimensions, not more than 200
  • check weight at least 1
  • check weight not more than 10
  • output parcel accepted (must be in appropriate position)
  • output parcel rejected (must be in appropriate position)
  • output all reasons for rejecting parcel (reason must follow test)
[5]
✓
Sample Answer.
✓
INPUT Length, Breadth, Height, Weight
✓
IF Length <= 80 AND Breadth <= 80 AND Height <= 80 AND Weight >= 1
✓
AND Weight <=10 AND Length + Breadth + Height <= 200 THEN
✓
PRINT 'Parcel accepted'
✓
ELSE
✓
PRINT 'Parcel rejected'
✓
IF Length > 80 OR Breadth > 80 OR Height > 80 THEN
✓
PRINT 'At least one dimension too large'
✓
ENDIF
✓
IF Weight < 1 THEN
✓
PRINT 'Parcel too light'
✓
ENDIF
✓
IF Weight > 10 THEN
✓
PRINT 'Parcel too heavy'
✓
ENDIF
✓
ENDIF
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge O Level – May/June 2016
✓
2210

Question 21

Mark scheme 2210_s16_ms_21.pdf →

Show text version of question

Question 1

Part (b)

Part (b)

Write an algorithm to complete Task 1, using either pseudocode, programming statements

or a flowchart.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...............................................................................................................................................[5]

Question 5

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

Keep practising this topic