Past-paper question · 2024 October-November · Paper 21 · Q8(c)

Question 8(c) 2024 · October-November · Paper 21 · 2 marks

Original past-paper question for 8(C)
Original past-paper question for 8(C)
Original past-paper question for 8(C)
Reveal official mark-scheme answer Official mark-scheme answer for 8(C)

Official answer for Question 8

Part (c)

✓
One mark for each point

Question 2

  • needs to be retrieved on demand // saved for a later date
  • storage must be non-volatile
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w24_ms_21.pdf →

Show text version of question

Question 8

Part (c)

Question 8

A programmer is designing a program to check the length of a password and to check if the

password input is the same as the stored password.

The program requirements are:

  • input the password, Password
  • check if there are at least 8 characters in the password
  • check that the password is not the same as the stored password OldPass
  • output ‘accepted’ if both tests are completed successfully
  • otherwise, output ‘rejected’.

Use the variable names given.

Part (c)

Explain why the accepted password needs to be stored in a file.

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

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

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

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

[2]

Question 8

, ,

Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Programming concepts

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 0478_w24_qp_21.pdf

Keep practising this topic