Question 1
1 markThe variable Grade has been declared with this statement:
DECLARE Grade : CHARWrite a pseudocode statement that stores the letter B in Grade.
Model answer
Grade ← 'B'
Explanation
In Cambridge pseudocode a CHAR literal is written in single quotes, a STRING literal in double quotes. Without any quotes, B would be treated as the name of a variable. Assignment always uses the arrow ←.
Mark scheme
-
1 mark
Grade ← 'B'
do not accept Grade ← "B" (a string), Grade ← B (B would be read as an identifier) or Grade = 'B'