1Question

# Conditional Coding micro-lesson

Do you struggle with balancing your kids’ screen time with their education? Say hello to 1Question, the app that solves this problem with a fun twist! Our app lets your child earn screen time minutes in their favourite apps by watching educational videos and correctly answering quiz questions. And the best part? You get to decide which apps to lock behind learning using 1Question.

## Learning time​

Kids learn by watching short, engaging video lessons.

When we answer questions in a game, we need to know if the answer is correct or incorrect. Conditional coding tells the program what to do when a correct answer is given, or an incorrect answer is given. In Scratch, we can use the If-then-else command to create conditional coding. This tells the game what to do when it is given a correct or an incorrect answer. The If-then-else command can be found in the Control section. If the input is equal to the correct answer, then we want the output to do one thing. Else, meaning if anything else is entered, then we want the output to do something else. To do this, we go to the Operators tab and choose the Something Equals Something block and put it after if. If, our answer you’re going to send in, and drag across answer. If answer equals, and then we need to enter the correct answer, what month comes after September? We type in October. If the answer equals October, then what do we want to happen? We could have the sprite moving forward 20 steps. Else, so if anything else is entered, we could have this spite moving back 20 steps, so minus 20.

Kids earn more screen time by answering fun educational questions.

• #### What is conditional coding?

1) Coding that tells the computer what to do when something specific happens
2) Coding that can change its mind
3) Coding that can work out the right answer
4) A coding language
• #### Where can the answer block be found?

1) In the sensing tab
2) In the control tab
3) In the operators tab
4) In the variables tab
• #### Where can the 'if, then, else' command be found?

1) In the control tab
2) In the sensing tab
3) In the operators tab
4) In the variables tab
• #### Where can the equals block be found?

1) In the operators tab
2) In the variables tab
3) In the control tab
4) In the sensing tab

1) Yes
2) No

1) Yes
2) No

## Recreational screen time

Kids can use the screen time minutes they earned to unlock the apps selected by their parent e.g. games, social media, streaming, etc.

## Out of time

When screen time minutes run out, kids are locked out and need to complete more learning in 1Question to earn more time.

Our micro-courses are developed and delivered by qualified educators from around the world.

#### Cat Scott

More lessons from the micro-course

##### Types of Games

We all love playing computer games, action games, simulation games, or puzzle games. But have…

##### Types of questions

Many games that we can play on the computer require us to answer questions and…