Computer Science · May / June 2026 · Paper 21 · Question 5
2210
As printed in the paper
The question as text
A computer system automatically creates usernames for new users. A new user enters their first name and their last name. The system: • takes the first letter of the first name • takes the first two letters of the last name • converts all the letters to upper case • generates a random whole number between 1 and 1000 inclusive. For the following example: The first name is Muhammed The last name is Hann The generated number is 492 The username will be MHA492
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
5(a)[2]
5(b)[3]
5(c)[3]
5(d)[4]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

