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"cat" | AA string: text made of the characters c, a and t, written inside quote marks | |
| 2"" | B"a b" | |
| 3Digits inside quote marks are text, not a number to do sums with | CThe closing quote mark is missing. A string needs a quote mark at the start and at the end: "hello". | |
| 4Spaces count as characters in a string, so this sentence has 3 characters | D"5" | |
| 5name = cat | EThe empty string: text with no characters inside the quote marks | |
| 6word = "hello | FThe word cat has no quote marks, so it is not written as a string of text. It should be "cat". |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
string — A string is text: a row of characters such as letters, digits, symbols and spaces, written inside quote marks like "cat". Even "5" is a string.word = "dog"
print(type(word))pin = "1234"
print(len(pin))greeting = "hi there"
print(len(greeting))empty = ""
print(len(empty) == 0)num = "5"
print(type(num) == str)