Computer Science Grade 1 20 min

If You're Happy, Then...

Exploring actions associated with happiness (smiling).

Tutorial Preview

1

Introduction & Learning Objectives

Learning Objectives Identify the 'if' part of a rule. Identify the 'then' part of a rule. Explain that the 'then' part only happens if the 'if' part is true. Follow a simple 'If...Then...' instruction. Create their own simple 'If...Then...' rule for a daily task. Act out an 'If...Then...' rule in a game. If you see a yummy red apple ๐ŸŽ, then what do you do? Let's learn about rules! We will learn about special rules called 'If...Then...' rules. These rules help computers, and us, make smart choices. It's like playing a fun game! Real-World Applications If it is raining ๐ŸŒง๏ธ, then I will take my umbrella โ˜‚๏ธ. If I am hungry ๐Ÿ˜‹, then I will ask for a snack. If the light is green ๐ŸŸข,...
2

Key Concepts & Vocabulary

TermDefinitionExample RuleA rule tells us what to do. It helps us make a choice. ๐Ÿค”A game rule is: 'If you land on a red square, go back one space.' IfThe 'If' part is the question. We check if something is true. โœ…In the rule 'If the cat is sleeping...', the 'If' part is 'the cat is sleeping'. ThenThe 'Then' part is the action. It's what we do after we check. ๐Ÿƒโ€โ™€๏ธIn the rule '...then be very quiet', the 'Then' part is 'be very quiet'. ConditionThis is another word for the 'If' part. It's the thing we check. ๐Ÿ‘€The condition is 'If the box is full'. ActionThis is another word for the 'Then' part. It's the thing we do. ๐ŸคธThe action is 'Then get a new b...
3

Core Syntax & Patterns

The Basic If...Then... Rule IF [something is true], THEN [do an action]. Use this to make a choice. First, check the 'IF' part. If it's true, you must do the 'THEN' part. The 'Do Nothing' Rule IF [something is NOT true], THEN [do nothing]. If the 'IF' part is not true, you just stop. You don't do the action. You wait for the next instruction.

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 sorting machine has a rule: IF a fruit is red AND round, THEN put it in the red basket. Which of these goes in the red basket?
A.red, round tomato
B.yellow, long banana
C.green, round apple
D.An orange, round orange
Challenging
A pet robot follows two rules: Rule 1: IF I am happy, THEN I wag my tail. Rule 2: IF you pet me, THEN I am happy. You decide to pet the robot. What happens?
A.Nothing happens
B.It wags its tail
C.It becomes sad
D.It runs away
Challenging
The schedule is: IF it is a weekday, THEN go to school. IF it is a weekend, THEN stay home. Today is Saturday. What do you do?
A.Go to school
B.Go to the park
C.Stay home
D.The rule doesn't say

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.