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 | |
|---|---|---|
| 1DECLARE Grade : CHAR | ADigit ← '7' | |
| 2Symbol ← '@' | BLetter ← 'x' | |
| 3A CHAR literal is exactly one character inside single quotes | CDeclares a variable named Grade that can store exactly one character | |
| 4A digit in single quotes is a character, not a number, so it is a CHAR value | DA CHAR holds exactly one character, but 'AB' has two. Use one character such as 'A' or change the type to STRING. | |
| 5Initial ← "B" | EDouble quotes were used. A CHAR value must be written in single quotes: 'B'. | |
| 6Letter ← 'AB' | FStores the symbol @ in a CHAR variable using single quotes |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
CHAR — The data type for exactly one character (a letter, digit or symbol), written in single quotes, such as 'x', '7' or '@'. Even '7' is a character, not a number.DECLARE Initial : CHARDECLARE Digit : CHAR
Digit ← '7'DECLARE Symbol : CHAR
Symbol ← '@'DECLARE Initial : CHAR
Initial ← 'K'
OUTPUT InitialDECLARE Symbol : CHAR
Symbol ← '#'