Skip to content

Course home

Programming concepts

Programming concepts

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
Question 46

Write a Python program to control the access hatch of an automated meteorological drone hangar.

The program should:

  • Prompt the user to enter their Station ID
  • Prompt the user to enter their Access Key
  • Display the message Launch sequence aborted if the entered Station ID and Access Key combination is not valid
  • Display the message Launch sequence initiated if the entered Station ID and Access Key combination is valid
  • Repeat this process until a valid combination is entered.

You should use indentation as appropriate, meaningful variable names, and correct Python syntax in your answer.

Figure 1: Valid Station Credentials

Station IDAccess Key
Hangar_1S_42*p
Hangar_2N_88!q
[7]
Markscheme

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts

298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank