Skip to content

Course home

Input/output

Input/output

EasyMedium
123
Question 2

Write a Python 3 program to register a new recovery passphrase for an encrypted backup drive.

Your program must:

  • prompt for and get the recovery passphrase from the user
  • prompt for and get the recovery passphrase a second time to confirm
  • output the message Backup Secured and output the entered passphrase if both inputs are identical
  • output the message Validation Failed: mismatch if the entered passphrases do not match.

You should use meaningful variable names and Python 3 syntax in your answer.

[5]
Markscheme

Input/output Questions

  1. GCSE
  2. /Computer Science
  3. /Input/output

10 exam-style questions on AQA GCSE Computer Science Input/output. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank