1–5 Complete each sentence
1. A person that writes programs is called a programmer.
2. To debug is to find and fix mistakes in the code.
3. A number is also called an integer.
4. A variable is a stored value that can change in a program.
5. A set of instructions that repeat are part of a loop.
/5
6 — Algorithm (fill the missing steps)
Complete sequence to get a drink of milk:
1. get cup
2. C — get milk jug from fridge
3. move the milk jug over cup
4. A — tilt the milk jug
5. stop pouring when the cup is full
6. B — put milk jug back in fridge
(So: 2 = C, 4 = A, 6 = B)
/3
7–9 True / False
7. A comment is a note for the programmer. — True
8. You can run a program without saving the changes. — False
9. Instructions that are part of a loop should be indented. — True
/3
10–12 What does the code do?
10. print('I like to code.') — a. Show the text on the screen, I like
to code.
11. #keep score — b. Tell the programmer about the code in
the program. (a comment)
12. while True: — c. Loop a set of instructions.
/3
13 Correct punctuation
13. print(You are super!) — correct form is a. quotes →
print('You are super!')
/1