Question 1
1 markThe variable City stores the string "PARIS".
Write a pseudocode statement that stores the contents of City in lower case in the variable LowerCity.
Model answer
LowerCity ← LCASE(City)
Explanation
LCASE returns a copy of the string with every upper-case letter changed to lower case. The original value in City is not changed; the result is assigned to LowerCity with ←.
Mark scheme
-
1 mark
LowerCity ← LCASE(City)
Do not accept LowerCity ← "paris" or = in place of ←.