Past-paper question · 2023 October-November · Paper 12 · Q9

Question 9 2023 · October-November · Paper 12 · 8 marks

Original past-paper question for 9
Original past-paper question for 9
Reveal official mark-scheme answer Official mark-scheme answer for 9

Official answer for Question 9

Question 8

✓
count ← 0
✓
smallest ← 1000
✓
largest ← 0
✓
(1)
✓
WHILE count < 10
✓
INPUT base, height
✓
CALL (must NOT have arrow, or colon)(1) parallelogram
✓
(base, height)(may award as FT if error in CALL or in
✓
wrong place)
✓
(1)
✓
IF area < smallest
✓
THEN
✓
smallest ← area
✓
(1)
✓
ELSE
✓
(1)
✓
(appears here even if the THEN statement is not
✓
completed/is wrong)
✓
IF area > largest
✓
(1)
✓
THEN
✓
(1)
✓
(appears here(IF test may be wrong))
✓
largest ← area
✓
(1)
✓
ENDIF
✓
(1)
✓
IF and ENDIF indented correctly
✓
(1)
✓
ENDIF
✓
count ← count + 1 (if present)
✓
(1)
✓
count ← count + 1 (if within while statement but not
✓
if within IF statement (unless in both)(allow FT for
✓
structure from previous mark point))
✓
(1)
✓
ENDWHILE
✓
(1)
✓
PRINT/OUTPUT smallest (1) largest
✓
(1)
✓
(Do not accept OUTPUT smallest and largest)
✓
ANY PRINT/OUTPUT statement as final statement
✓
(1)
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_w23_ms_12.pdf →

Show text version of question

Question 9

Sukhjinder, a mathematics student, has defined a procedure using pseudocode. It calculates the area of a parallelogram by multiplying the base by the height. All parallelograms will have an area of less than 1000.

The procedure Sukhjinder has written is:

PROCEDURE parallelogram(base,height) area base*height ENDPROCEDURE

He has also begun writing an algorithm which calls the procedure and then passes back the area.

The main algorithm accepts inputs of the base and the height of 10 parallelograms, one at a time. It will output the areas of the largest and smallest parallelograms.

Complete the algorithm for Sukhjinder by filling in the missing lines.

count 0 smallest 1000

.......................................................................................................................................................... WHILE count < 10 INPUT base, height

.......................................................................................................................................................... IF area < smallest THEN

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

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

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

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

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

.......................................................................................................................................................... ENDIF

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

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

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

[8]

Question 10

Topic relevance

Why this question appears here

80% assigned-topic match · Algorithms and flowcharts › Algorithms and flowcharts

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 9626_w23_qp_12.pdf

Keep practising this topic