Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1LCASE("HELLO") | AThe argument is missing its brackets. It should be LCASE("HELLO"). | |
| 2LCASE('W') | BReturns the string "hello" with every letter in lower case | |
| 3LCASE does not change the original variable unless the result is assigned back to it | CAnswer ← LCASE(Reply) | |
| 4LCASE is the opposite of UCASE: it converts text to lower case instead of upper case | DReturns the CHAR 'w' | |
| 5LCASE(Name) OUTPUT Name | EThe result of LCASE is thrown away, so Name is unchanged and OUTPUT shows the original text. It should be Name ← LCASE(Name). | |
| 6Word ← LCASE "HELLO" | FName ← LCASE(Name) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
LCASE(Text) — Returns the text with every character in lower case, e.g. LCASE("Hi") gives "hi". The original variable is unchanged unless you assign the result to it.OUTPUT LCASE("Hi")Big ← UCASE(Word)
Small ← LCASE(Word)Name ← LCASE(Name)DECLARE Word : STRING
Word ← "HELLO"
OUTPUT LCASE(Word)DECLARE Initial : CHAR
Initial ← LCASE('W')