Past-paper question · 2016 May-June · Paper 23 · Q10(b)(ii)

Question 10(b)(ii) 2016 · May-June · Paper 23 · 2 marks

Original past-paper question for 10(B)(II)
Original past-paper question for 10(B)(II)
Original past-paper question for 10(B)(II)
Original past-paper question for 10(B)(II)
Original past-paper question for 10(B)(II)
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9691_s16_ms_23.pdf →

Show text version of question

Question 10

Part (b)

(ii)

Question 10

"River" 10 0 10 0

Alessio now designs the procedures InputScoresAndCalcAverage and UpdatePointsTotals.

Question 11

The social club wants a printout of the competitor names and points totals after each game in rank order (highest points total first).

To do this, Alessio writes a pseudocode procedure:

PROCEDURE SortIntoRankOrder REPEAT NoMoreSwaps ← TRUE FOR x ← 1 TO 9 IF PointsTotal[x] < PointsTotal[x + 1] THEN NoMoreSwaps ← FALSE Temp ← PointsTotal[x] PointsTotal[x] ← PointsTotal[x + 1] PointsTotal[x + 1] ← Temp ENDIF ENDFOR UNTIL NoMoreSwaps = TRUE ENDPROCEDURE

Question 13

(ii)

Alessio writes a procedure DisplayRankOrderList. This procedure is to display the

competitors’ names and their points totals in rank order.

PROCEDURE DisplayRankOrderList OUTPUT " Competitor Table" OUTPUT "Rank Name Points Total" OUTPUT "=========================================" FOR i ← 1 TO 10 OUTPUT i, CompetitorName[i], PointsTotal[i] ENDFOR ENDPROCEDURE

When the output is published, some competitors complain that their points total and rank are not correct.

Explain the error that Alessio has made.

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

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

.......................................................................................................................................[2]

Question 15

Topic relevance

Why this question appears here

71% assigned-topic match · Hardware › Logic gates and logic circuits

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 9691_s16_qp_23.pdf

Keep practising this topic