Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2024 · Paper 22 · Question 2

9618

As printed in the paper

The question as text

A program is being developed to process bank card information. When a card number is displayed, all the characters except the last four are replaced with the asterisk character '*'. Card numbers are stored as strings. The strings are between 10 and 20 characters in length. The function Conceal() will take a string representing a card number and return a modified string. Example strings: Original string Modified string "1234567890" "******7890" "1234567897652" "*********7652" "1234567890123456" "************3456"

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

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

  • 2(b)(i)[2]

  • 2(b)(ii)[1]

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