Past-paper question · 2009 October-November · Paper 32 · Q3(b)

Question 3(b) 2009 · October-November · Paper 32 · 3 marks

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

Official answer for Question 3

Part (b)

Part (b)

Following through from candidate’s answer to (a):

  • Read first value from each and compare/Compare BRI and ADA
  • Write the lower value to new file/Write ADA to new file
  • Read next value from successful file and repeat/COU and compare with BRI
  • Until one file is empty, then copy remainder of the other file to new/ROG and SYG
✓
copied to new file after LOV.
✓
(1 per –, max 3)
[3]

Mark scheme 9691_w09_ms_32.pdf →

Show text version of question

Question 3

Part (b)

Question 3

This question is about sorting data in files into order.

File A: CHO, SYG, DAN, ROG, BRI File B: ADA, COU, LAC, LOV File C: HEL, SAR, PAU, GRA, CHR, STE

Part (b)

By using your sorted file A and file B to illustrate your answer, describe how a merge sort can

be used to sort two files into one file in alphabetical order.

[3]
Topic relevance

Why this question appears here

86% assigned-topic match · Data types and structures › Files

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

Keep practising this topic