1 Answers
π Topic Summary
Imagine you're giving instructions to a friend. Sometimes you want them to do something only if a certain condition is true. That's what If/Then statements are all about! In coding, it's a way to tell the computer: "If something is true, THEN do this!" We can practice this with games and activities that don't need any screens at all!
This worksheet helps you explore these fun scenarios, where kids learn basic coding concepts without needing computers or tablets. Think of it as coding unplugged!
π Part A: Vocabulary
Match the word with its meaning:
| Word | Meaning |
|---|---|
| 1. Condition | A. What happens if the condition is true. |
| 2. If | B. A test to see if something is true or false. |
| 3. Then | C. A set of instructions for the computer to follow. |
| 4. Statement | D. Used to introduce a condition. |
| 5. Action | E. Indicates the result of the βIfβ condition being met. |
(Answers: 1-B, 2-D, 3-E, 4-C, 5-A)
βοΈ Part B: Fill in the Blanks
Complete the sentence with the correct word.
If it is raining, ________ take an umbrella. This is an example of an _________ statement. The raining is the __________, and taking an umbrella is the _______. So If the condition is true, the action will _______. In this instance, we ________ an umbrella.
(Answers: Then, If/Then, condition, action, happen, take)
π§ Part C: Critical Thinking
Imagine you are teaching a robot to make a sandwich. Write one If/Then statement to tell the robot what to do.
Join the discussion
Please log in to post your answer.
Log InEarn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! π