Skip to content

Course home

Input/output

Input/output

EasyMedium
123
Question 1

Write a C# program to check if a new security PIN has been entered correctly by a user.

Your program must:

  • prompt for and get the user to input a security PIN
  • prompt for and get the user to input the security PIN a second time to confirm
  • output the message PIN Set and output the entered PIN if both inputs are identical
  • output the message Error: mismatch if the entered PINs do not match.

You should use meaningful variable name(s) and C# 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