Past-paper question · 2019 October-November · Paper 23 · Q3

Question 3 2019 · October-November · Paper 23 · 5 marks

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

Official answer for Question 3

Question 5

✓
One mark for each of the following:
✓
•
✓
all three boxes correctly labelled
✓
•
✓
parameters in to GetPassword()
✓
•
✓
value back from GetPassword()
✓
•
✓
parameters in to UpdateFile()
✓
•
✓
BOOLEAN value back from UpdateFile()
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w19_ms_23.pdf →

Show text version of question

Question 3

Three program modules process updating of passwords in a file. A description of the relationship between the modules is summarised as follows:

Module name Description

GetPassword()

  • Takes two parameters: AccountID and OldPassword
  • Returns a string containing the new password
  • Takes two parameters: AccountID and NewPassword

UpdateFile() • Returns a Boolean value to indicate whether or not the update was successful

ChangePassword()

  • Calls GetPassword() to obtain the new password then

calls UpdateFile() to write the new password to the file

Draw a structure chart to show the relationship between the three modules and the parameters passed between them.

[5]

Question 8

Topic relevance

Why this question appears here

82% 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 9608_w19_qp_23.pdf

Keep practising this topic