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(x) | Afor i in range(3): print(i) | |
| 2# add the scores | Bprint("Hi") # same output with or without colours | |
| 3Prettyprint uses indentation to show which lines belong inside a block such as a loop | CPrettyprint only changes the display. It does not change the code or make it run faster. | |
| 4Prettyprint is layout only: it changes how code looks on screen, not what the code does | DPrettyprint shows a comment in its own colour, so it stands out from the code that runs. | |
| 5Prettyprint rewrites your code so that it runs faster. | EPrettyprint does not fix errors. It only makes the code easier to read so the student can spot errors more easily. | |
| 6Prettyprint finds and fixes the errors in your program. | FPrettyprint shows the keyword if in a colour and indents the line inside the block, so the structure is easy to see. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
prettyprint — An IDE feature that shows code in a clear layout, using colours for keywords and indentation for blocks, so it is easy to read. It changes only the display, not the code.# prettyprint colours keywords in the editorif score > 50:
print("Pass")FOR i ← 1 TO 3
OUTPUT i
NEXT i# Comments get their own colour
print("Hi")# Prettyprint changes layout, not the code