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.
x = 5 do?name = 'Alice', what is stored in name?= mean in Python?score = 100, what is stored in score?Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 13name = 'Bob' | AOutput: 10 | |
| 2my-score = 5 | BValid: Number after first char | |
| 3name3 = 'Bob' | CValid: Underscore ok | |
| 4my_score = 5 | DError: Starts with number | |
| 5x = 10 print(x) | EError: Hyphens not allowed | |
| 6name = 'Alice' print(name) | FOutput: Alice |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
name = 'Alice' — Variables store values using = (assignment operator)name = 'Bob'
print(name)age = 15
print(age)score = 100
print(score)city = 'Melbourne'
print(city)age = input('Enter Age: ')
print(age)