Skip to content

Course home

Programming concepts

Programming concepts

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
Question 7

A security terminal program is to be written to authenticate an operator attempting to connect to a drone telemetry system.

Table 1 shows the only two valid operator ID and security code combinations.

Operator IDSecurity Code
TechAlphadelta77
ChiefBetaomega99

Write a C# program to authenticate an operator.

The program should:

  • Ask the user to input an operator ID
  • Ask the user to input a security code
  • Display the message Connection Failed if the operator ID and security code pair entered is not valid
  • Display the message Connection Established if the operator ID and security code pair entered is valid
  • Repeat these steps until a valid operator ID and security code pair is entered.

You should use meaningful variable names and correct C# syntax in your answer.

[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