Grade 4 Game-Based Coding Worksheet
| # | Answer | Explanation |
|---|---|---|
| 1 | A. 1914 | World War I began in 1914. |
| 2 | A step-by-step set of instructions to complete a task. | An algorithm tells a computer or person exactly what steps to follow. |
| 3 | 1, 2, 3, 4 | First check the list, then organize the boxes, load them, and finally count them. |
| 4 | A. Repeat 5 times | A loop is used for repeating the same action several times. |
| 5 | True | People often sent messages by letter, telegraph, or messenger during that time. |
| 6 | Take an umbrella. | The condition 'raining' matches the first action. |
| 7 | Supply Depot | Supplies are picked up at the depot before going to the front line. |
| 8 | B. A mouse click | An input is something sent into the computer, like a click or a key press. |
| 9 | bug | A bug is an error that makes a program work the wrong way. |
| 10 | A condition or if-statement | The program makes a decision based on whether the route is blocked. |
| 11 | B. Different types of supplies | Lists are good for keeping organized groups of related items. |
| 12 | 12 points | 3 + 3 + 3 + 3 = 12, or 3 x 4 = 12. |
| 13 | helmet | The pattern repeats two helmets and one map. |
| 14 | B. To start an action when a button is pressed | Events tell a program to respond when something happens. |
| 15 | One country or one record of information | Each row in a table often shows one item or record. |
| 16 | 1, 3, 4, 2 | You must write it first, then place it in an envelope, address it, and deliver it. |
| 17 | They try again. | The ELSE part gives the action when the first condition is not met. |
| 18 | C. Check one step at a time | Good debugging means testing carefully and looking for the exact problem. |
| 19 | order | Timelines and programs both depend on steps in the correct order. |
| 20 | A. Loop | A loop repeats the same action many times. |
| 21 | A clear algorithm helps players know what to do next and keeps the game working correctly. | Clear steps make a program easier to follow and less likely to break. |
| 22 | 32 | Two choices for 5 checkpoints means 2 x 2 x 2 x 2 x 2 = 32. |
| 23 | C. A score appearing on the screen | An output is information the computer shows or gives back. |
| 24 | No. World War I happened before World War II. | World War I began in 1914, and World War II began later, in 1939. |
| 25 | Sample answer: 1. Start at the supply depot. 2. Repeat 3 times: pick up one box and load it on the cart. 3. If the route is clear, move to the front line. 4. If the route is blocked, choose a new path. | A strong answer includes ordered steps and either a loop or a decision statement. |