Computer Science
Grade 1
20 min
If You're Tired, Then...
Exploring the consequence of being tired (taking a nap).
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 an 'if' is a check or a question.
Explain that a 'then' is an action to do.
Create their own simple 'If...Then...' rules using pictures or words.
Follow a two-step algorithm that uses a simple conditional.
What do you do if you feel sleepy at bedtime? ๐ด Do you take a nap?
We are learning about special computer rules called 'If...Then...'. These rules help computers make smart choices, just like you do!
Real-World Applications
If the light is red ๐ฆ, then the car stops.
If you press the 'jump' button ๐ฎ, then your character jumps.
If it is raining outside ๐ง๏ธ, then you wear rain boot...
2
Key Concepts & Vocabulary
TermDefinitionExample
RuleA rule tells you what to do. It helps us follow steps.A rule is: 'Wash your hands before you eat.' ๐งผ
IfThe 'If' part is the check. It asks a 'yes or no' question.IF it is sunny... โ๏ธ (Is it sunny? Yes or no?)
ThenThe 'Then' part is the action. It's what you DO after the check.THEN wear sunglasses. ๐ (This is the action you do.)
ConditionThis is another word for the 'If' part. It's the thing we check.The condition is: 'the cat is hungry'. ๐
ActionThis is another word for the 'Then' part. It's the thing we do.The action is: 'feed the cat'. ๐ฅฃ
AlgorithmAn algorithm is a list of steps to finish a task.A morning algorithm: 1. Wake up. 2. Brush teeth. 3. Eat breakfast.
3
Core Syntax & Patterns
The If...Then... Recipe
IF [a condition is true], THEN [do an action].
This is the magic recipe for all our rules. First, check the 'If' part. If it's true, then you must do the 'Then' part.
The Yes/No Question Rule
The 'If' part must be a question with a 'yes' or 'no' answer.
You can't have a rule like 'If blue...'. It must be 'If the sky is blue...'. We can answer 'yes' or 'no' to that!
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
A robot's rule is: IF the room is messy, THEN pick up one toy. The room has 10 toys on the floor. What is the problem with this rule for cleaning the whole room?
A.The robot will get tired
B.The robot might break the toys
C.It will only pick up one toy and then stop
D.The robot doesn't know what 'messy' means
Challenging
Which rule is BEST for a phone to save its battery power? ๐
A.IF the battery is low, THEN lower the screen brightness
B.IF the phone is cold, THEN turn on a game
C.IF it is morning, THEN make the volume loud
D.IF the battery is full, THEN turn the flashlight on
Challenging
You are tired and your hands are dirty from playing outside. Which set of rules is in the best ORDER to get ready for bed?
A.IF you are tired, THEN get in bed. IF your hands are dirty, THEN wash them.
B.IF you are tired, THEN wash your hands.
C.IF your hands are dirty, THEN get in bed.
D.IF your hands are dirty, THEN wash them. IF you are tired, THEN get in bed.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free