Note AcademyNote Academy

Computer Science · May / June 2024 · Paper 22 · Question 4

2210

As printed in the paper

The question as text

A program needs to make sure the characters input for a product code meet these rules: • The product code is six characters in length. • The first two characters must be “PD”. • The last four characters must be a number in the range 1000 to 9999 inclusive.

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 4(a)[6]

  • 4(b)(i)[2]

  • 4(b)(ii)[2]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.