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

Question 8(a) 2024 · October-November · Paper 21 · 6 marks

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

Official answer for Question 8

Part (a)

Question 6

✓
One mark for:
✓
START
  • correct use of flowchart symbols
✓
START
  • working flowlines
  • input correct
✓
INPUT Password
  • working length check
  • working comparison
  • correct output messages
✓
No
✓
IS Length
✓
Password >= 8 ?
✓
Yes
✓
No
✓
IS Password <>
✓
OldPass?
✓
Yes
✓
OUTPUT
✓
OUTPUT
✓
"accepted"
✓
"rejected"
✓
STOP

Mark scheme 0478_w24_ms_21.pdf →

Show text version of question

Question 8

Part (a)

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 (a)

Complete the flowchart for the program.

START

STOP

[6]

Question 7

, ,

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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