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 | |
|---|---|---|
| 1'A' | A'0412345678' | |
| 2'Sam Lee' | BThe phone number has no quotes, so it is treated as a number and the leading zero is lost. It should be '0412345678'. | |
| 3A phone number is stored as a string so the leading zero is kept | CA string: a sequence of characters, including a space, stored as text | |
| 4A single symbol is a character, even though it is not a letter | DThe text has no quotes, so it is not recognised as a string. It should be 'Sam'. | |
| 5phone = 0412345678 | EA single character (one letter) written in quotes | |
| 6name = Sam | F'#' |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
string — Text made of a sequence of characters (single letters, digits or symbols), written in quotes, like 'Sam' or '0412345678'. Phone numbers are strings.Field: Phone
Data type: Textphone = "0412345678"
print(phone)print(len("0412345678"))Initial: Character
Name: Stringprint("04" + "12")