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 | |
|---|---|---|
| 1if x > 5 print('big') | AOk: Always runs | |
| 2if x > 5: print('big') | BError: Missing colon after if | |
| 3if age >= 18: print('Adult') | CError: Body must be indented | |
| 4if True: print('yes') | DOutput: big | |
| 5x = 10 if x > 5: print('big') | EOutput: (nothing) | |
| 6x = 3 if x > 5: print('big') | FValid: if with colon + indent |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
if — Runs the indented code only when the condition is True.~~Conditionif 5 > 3:
print('Yes')if age >= 13:
print('Teen')if x == 10:
print('Match')if score >= 50:
print('Pass')if name == 'Alice':
print('Hi')