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 | |
|---|---|---|
| 1code editor | AThis describes a translator (compiler or interpreter), not the code editor. The code editor is where you type and edit the source code. | |
| 2syntax highlighting | B1 name = input("Name: ") 2 print(name) | |
| 3A code editor shows line numbers down the side so you can find the line an error message mentions | CThe part of an IDE where the programmer types and edits source code | |
| 4A code editor uses syntax highlighting, so keywords such as print and if appear in a different colour from the rest of the code | Dif age >= 16: # 'if' shown in colour | |
| 5A code editor is the part of an IDE that translates source code into machine code. | EA plain text editor does not normally give line numbers or syntax highlighting. These features are what make a code editor different. | |
| 6A plain text editor like Notepad gives line numbers and colour-coded keywords just like a code editor in an IDE. | FColour-coding keywords, strings and numbers in the code editor so they are easier to spot |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
code editor — The part of an IDE where you type and edit source code. It shows line numbers and syntax highlighting (colour-coded keywords), which a plain text editor does not.# The code editor colours keywords
print("Score:", 10)
# print is shown in a keyword colourfor i in range(3):
print(i)score = 60
if score > 50:
print("Pass")# This comment is shown in a new colourdef greet(name):
print("Hi", name)