Computer Science Grade 1 20 min

If You're Happy, Then...

Exploring actions associated with happiness (smiling).

What you'll learn

  • Identify the 'If' part of a simple 'If...Then' statement demonstrated by the teacher (e.g., If you're wearing blue...).
  • Perform the action specified in the 'Then' part of a simple 'If...Then' statement when the 'If' condition applies to them (e.g., If you're wearing blue, then clap your hands).
  • Repeat the 'Then' action after the teacher states an 'If...Then' statement.

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

Computer Science for other grades

Frequently asked questions

What grade level is "If You're Happy, Then..."?

If You're Happy, Then... is a Grade 1 Computer Science lesson on ExcelOS.

What will I learn in If You're Happy, Then...?

You'll be able to: Identify the 'If' part of a simple 'If...Then' statement demonstrated by the teacher (e.g., If you're wearing blue...); Perform the action specified in the 'Then' part of a simple 'If...Then' statement when the 'If' condition….

Is "If You're Happy, Then..." free to practice?

Yes. You can read the tutorial preview for free, and signing up for a free ExcelOS account unlocks the full tutorial and all practice questions with instant feedback.

How many practice questions are included with If You're Happy, Then...?

This lesson includes 27 practice questions across multiple difficulty levels, each with instant feedback and explanations.

Ready to find your learning gaps?

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