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 | |
|---|---|---|
| 1print("Hi") | AThe closing bracket is missing. Every opening bracket needs a matching closing bracket to finish the line. | |
| 2name = input("Name? ") | Bprint("Start") | |
| 3A stack of three Scratch blocks becomes three lines of Python that run in order from the top | CPython is case sensitive, so Print with a capital P is not the print function. It must be lowercase print. | |
| 4The script under the green flag hat block becomes the first line of the file, so the program starts there | Dprint("Ready") print("Set") print("Go") | |
| 5Print("Hi") | EThe typed Python line that matches a Scratch say block with the word Hi | |
| 6print("Hi" | FThe typed Python line that matches a Scratch ask block, with the reply stored in name |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
print("Hi") — One typed line of Python matches one Scratch block. A stack of blocks becomes lines of code that run in order from the top, so spelling and punctuation must be exact.print("Hi")score = 0
score = score + 1name = input("Your name? ")# repeat 3
for i in range(3):
print("Hi")name = input("Name? ")
print("Hi " + name)