Past-paper question · 2010 May-June · Paper 13 · Q9(b)

Question 9(b) 2010 · May-June · Paper 13 · 7 marks

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

Official answer for Question 9

Part (b)

Part (b)

e.g. PROCEDURE PRIZE

✓
OPEN FILE STUDENTS
✓
SEARCH FOR FORM
✓
SET HIGH = 0
✓
WHILE NOT END OF STUDENTS, DO
✓
CALL PROCEDURE MEAN
✓
IF AVERAGE > HIGH THEN HIGH = AVERAGE; STUDENT = CURRENT NAME;
✓
FLAG = FALSE
✓
ELSE IF AVERAGE = HIGH THEN FLAG = TRUE
✓
ENDIF
✓
ENDIF
✓
ENDWHILE
✓
IF FLAG = TRUE THEN REPORT ‘Problem Equal high scorers’
✓
ELSE OPEN FILE ‘PRIZES’
✓
COPY FORM AND STUDENT TO PRIZES
✓
ENDIF
✓
END
✓
Mark Points:
  • Name procedure and open student file
  • Initialise high score
  • While loop with correct condition
  • Use of Mean, not repeat of statements
  • Condition between average and high
  • Correct action if average > high
  • Correctly identify problem if average = high
  • Sensible action taken for equal values
  • Correct problem report
  • Correctly opens PRIZES and stores values of form and student name in it
✓
(1 per -, max 7)
[7]

Mark scheme 9691_s10_ms_13.pdf →

Show text version of question

Question 9

Part (b)

Question 9

Candidates are advised to use either pseudocode or a flow chart to answer this question,

although other forms of algorithmic representation will be credited.

Part (b)

The school awards a prize each year to the students who achieve the highest mean mark in

their form.

Produce an algorithm for a procedure called PRIZE which will determine which student will win the prize for a particular form. The name of the form and the name of the student should then be saved to a file called PRIZES.

(You should use MEAN in this final algorithm without reproducing the detail in part (a).)

[7]

reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

University of Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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

Keep practising this topic