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 | |
|---|---|---|
| 1pritn("Hi") changed to print("Hi") | AAuto-correction only fixes simple mistakes, such as spelling or a missing bracket. It cannot fix logic errors or bad algorithms. | |
| 2print("Hi" with a suggested fix: add ) | BAuto-correction fixes a misspelt keyword or function name without the programmer retyping it | |
| 3Auto-correction fixes simple typing mistakes, such as a misspelt keyword | Cwhiel x < 5: -> while x < 5: | |
| 4Auto-correction is different from auto-completion: it repairs a mistake, while auto-completion finishes code being typed | DAuto-correction suggests a fix for a missing bracket, and the programmer can accept it | |
| 5Claiming: auto-correction suggests the code that finishes the word you are typing | EThis describes auto-completion, not auto-correction. Auto-correction fixes mistakes that have already been made. | |
| 6Claiming: auto-correction guarantees the program has no errors | FAuto-correction: fro -> for | Auto-completion: fo -> for |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
auto-correction — An IDE feature that fixes, or suggests fixes for, simple mistakes like a misspelt keyword or a missing bracket. The programmer can accept the fix, so fewer syntax errors occur.# IDE fixes pritn to the correct word
print("Score: 10")# IDE fixes the missing closing bracket
score = int(input("Age: "))# IDE suggests changing fi to the keyword
if score > 5:
print("Pass")total = 5
# IDE suggests fixing totl to the variable
print(total)# IDE offers a fix for rnage
for i in range(3):
print(i)