Computer Science Grade 1 20 min

If You're Hungry, Then...

Exploring the consequence of being hungry (eating a snack).

Tutorial Preview

1

Introduction & Learning Objectives

Learning Objectives Identify the 'If' part of a simple rule. Identify the 'Then' part of a simple rule. Explain that the 'If' part must be true for the 'Then' part to happen. Follow a one-step 'If...Then...' instruction. Create their own simple 'If...Then...' rule using familiar objects. Act out an 'If...Then...' scenario correctly. Are you hungry right now? 😋 What do you do IF you are hungry? We are learning about special computer rules called 'If...Then...'. These rules help computers, and us, make smart choices. It's like a game of cause and effect! Real-World Applications If it is raining, then you get an umbrella. ☔ If the traffic light is red, then you stop. 🚦 If you are ti...
2

Key Concepts & Vocabulary

TermDefinitionExample If...Then... RuleA rule that tells you what to do. IF one thing happens, THEN you do another thing.IF the bell rings 🔔, THEN we line up for recess. Condition (The 'If' part)The first part of the rule. We check to see if it is true.In 'If you are cold...', the condition is 'you are cold'. 🥶 Action (The 'Then' part)The second part of the rule. It is what you do if the condition is true.In '...then put on a jacket', the action is 'put on a jacket'. 🧥 TrueThis means the condition is happening right now. It is a 'yes'!The condition 'If the sun is out' is TRUE if you see the sun shining. ☀️ FalseThis means the condition is not happening. It is a 'no'!The condition 'If the sun...
3

Core Syntax & Patterns

The 'If...Then...' Pattern IF [a condition is true], THEN [do an action]. This is the pattern for all our rules. The action only happens if the condition is true. The 'Check First' Rule Always check the IF part first! Before you do the action, you must stop and check the condition. Is it true? Yes or no?

4 more steps in this tutorial

Sign up free to access the complete tutorial with worked examples and practice.

Sign Up Free to Continue

Sample Practice Questions

Challenging
A computer game has a rule: 'IF you have the blue key, THEN you can open the blue door.' You have a red key and a yellow key. What can you NOT do yet?
A.Find the blue key
B.Open the blue door
C.Walk around
D.Use the red key on a red door
Challenging
A robot's rule is: 'IF you are sad, THEN I will give you a cookie.' Why might this be a bad rule for a person?
A.Cookies are not delicious
B.Eating a cookie doesn't always fix sadness and isn't always healthy
C.Robots cannot hold cookies
D.Sadness is a happy feeling
Challenging
Every time the teacher turns off the lights, the students get quiet. What is the 'If...Then...' rule the students are following?
A.IF the students are quiet, THEN the teacher turns off the lights.
B.IF the teacher is talking, THEN the students get quiet.
C.IF the teacher turns off the lights, THEN the students get quiet.
D.IF it is daytime, THEN the students are quiet.

Want to practice and check your answers?

Sign up to access all questions with instant feedback, explanations, and progress tracking.

Start Practicing Free

More from If...Then...: Simple Conditional Statements

Ready to find your learning gaps?

Take a free diagnostic test and get a personalized learning plan in minutes.