Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

Logic Lab: If, Then, Go!

star
star
star
star
star
Last updated 16 days ago
15 Nsɛmmisa
Akwankyerɛ

Work on your own or with a small group. Read each question carefully and think like a computer: check whether a condition is true, follow the instructions in order, and decide what should happen next. Be ready to explain how you figured out your answers.

Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
2
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

A conditional is an instruction that does something only when a condition is met. Which sentence is a conditional?

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

In the rule “If it is raining, carry an umbrella,” carrying an umbrella happens when the condition is true.

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

A robot follows this rule: “If the button is blue, play a beep.” The button is blue. What should the robot do?

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

If a robot's rule says, “If the card is green, clap,” and the card is yellow, the robot must clap.

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

Put these instructions in an order that helps a robot plant a seed:

  1. Make a small hole in the soil.

  2. Place the seed in the hole.

  3. Cover the seed with soil.

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

A robot starts facing a door. Its steps are: turn right, then move forward. In which direction does it face after the first step?

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

Match each computer science word to its meaning.

Draggable itemarrow_right_altAde a ɛne no hyia

Condition

arrow_right_alt

Steps in order

Algorithm

arrow_right_alt

Something checked as true or false

Sequence

arrow_right_alt

A rule that depends on a condition

Conditional

arrow_right_alt

A set of steps to solve a problem

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

A robot has two instructions: move forward, then turn left. What does “then” tell the robot?

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

A program should help a character cross the street safely. Which two instructions use a condition to make a choice?

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Which instruction uses an if/then rule?

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

A robot's rule says, “If the path is blocked, stop.” The path is clear. The robot should stop because of this rule.

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

In the rule “If the path is blocked, stop,” what is the condition?

Asemmisa {{asɛmmisaAhyɛnsode}}
13.

Put the robot's instructions in order to get ready for class:

  1. Pick up your notebook.

  2. Put the notebook in your backpack.

  3. Zip the backpack.

Asemmisa {{asɛmmisaAhyɛnsode}}
14.

Choose the two instructions where the action depends on a condition.

Asemmisa {{asɛmmisaAhyɛnsode}}
15.

Imagine you are giving instructions to a robot. Write one if/then rule and explain what the robot should do when the condition is true.