1) What is a conditional statement? a) A rule that allows a program to make decisions based on conditions. b) Smart devices and AI-based automation. 2) How does an if-then statement work? a) It checks a condition and executes a command if the condition is true. b) Real-life applications range from smart homes to game programming. 3) Why would using multiple conditions be useful in a game? a) It allows for different actions depending on player input, making the game interactive. b) MakeCode provides an easy way to experiment with repeat logic 4) Compare if-then and if-then-else statements. When would each be useful? a) MakeCode provides an easy way to experiment with repeat logic b) If-then is useful for simple conditions, while if-then-else handles alternatives.

Leaderboard

Visual style

Options

Switch template

Continue editing: ?