Past-paper question · 2012 May-June · Paper 21 · Q1(d)

Question 1(d) 2012 · May-June · Paper 21 · 5 marks

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

Official answer for Question 1

Part (d)

Part (d)

e.g.

✓
PrintedTotal 0
✓
AudioBookTotal 0
✓
EBookTotal 0
✓
REPEAT
✓
READ next record
✓
IF BookType = “printed”
✓
THEN PrintedTotal PrintedTotal + 1
✓
ELSE
✓
IF BookType = “audio-book”
✓
THEN AudioBookTotal AudioBookTotal + 1
✓
ELSE
✓
IF BookType = “e-book”
✓
THEN EBookTotal EBookTotal + 1
✓
ENDIF
✓
ENDIF
✓
ENDIF
✓
UNTIL no more student records
✓
Marking guidelines:
  • initialising each total before REPEAT
  • nested IFs
  • 3 incrementations
  • correct ENDIFs
  • sensible identifiers and indenting
[5]

Mark scheme 9691_s12_ms_21.pdf →

Show text version of question

Question 1

Part (d)

Question 1

Anna wants to find out about her fellow students’ reading habits. It will be part of her For

Literature coursework. Examiner's Use She will ask questions online, so starts by designing a screen layout. The first four questions will ask for:

  • student’s first name
  • date of birth
  • type of book they prefer (printed, audio-book or e-book)
  • whether student reads novels (yes/no)

Part (d)

Anna is to write a program to analyse the responses. For

Examiner's Use Using nested IF...THEN statements, complete the pseudocode to calculate the totals for each BookType (printed, audio-book or e-book).

REPEAT

READ next record

UNTIL no more student records

[5]

Question 5

Topic relevance

Why this question appears here

92% 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_s12_qp_21.pdf

Keep practising this topic