Question 1 Report
A sports physiotherapy clinic uses a program to make file names for exercise videos. A therapist enters a patient reference and an exercise title. Spaces in the title must be replaced with underscore characters so that the file can be uploaded to the clinic server. The original title is still displayed to patients in a friendly form.
(a) Explain why the program should keep a separate original title for the patient display. [1]
(b) When the title is ankle balance, state the server-safe title after spaces are replaced. [1]
(c) Explain how a replace operation is preferable to manually selecting every space when titles have different lengths. [1]
For each volunteer on a river-cleanup day, the registration program creates a badge message from a first name and a team colour. The organiser wants the message displayed as WELCOME, NAME - TEAM TEAM. Names are entered with normal capitalisation, while team colours are stored in lower case. The program should not alter the volunteer's original name because it is also printed on a certificate.
(a) Explain why the team colour can be converted to upper case without changing the stored name. [1]
(b) When the name is Asha and the colour is green, state the complete badge message. [1]
(c) Explain how concatenation includes punctuation and spaces in the final string. [1]
Exercise-video titles
ankle balance gives ankle_balance. [1]Volunteer badge messages
WELCOME, Asha - GREEN TEAM. [1]Everything you need to excel in your exams