Search Header Logo
Conditional Statements

Conditional Statements

Assessment

Presentation

Computers

5th - 12th Grade

Medium

Created by

Nicole Kline

Used 49+ times

FREE Resource

5 Slides • 7 Questions

1

Conditional Statements in Programming

2

Conditional Statement

A conditional statement in programming is a code construct that allows a program to execute different blocks of code based on whether a specific condition is true or false, commonly represented using
"if-then" or "if-then-else" structures.

3

media

​Example

4

media

Example
​If-Then-Else Statements
If it is raining, then bring an umbrella,
else keep going.

5

Let's see if you understant conditional statements.

6

Multiple Choice

The "If" Statement is an example of a _________________

1

Correctional Statement

2

Competitive Statement

3

Conditional Statement

4

Inquisitive Statement

7

Multiple Choice

Which of these can be paired with an "if" statement to represent other outcomes of a scenario?

1

or

2

else

3

but

4

and

8

Multiple Choice

John is 5. What will John get as a snack?

Read the statements below to answer the question.

IF John > 6 years old, then {John is getting ice cream;}

ELSE {John is getting apple juice and grapes;}

1

John is getting ice cream

and grapes.

2

John is getting apple juice and grapes.

3

John is getting apple juice.

4

John is getting ice cream.

9

Multiple Choice

It is sunny and warm today. What should we do?

Read the statements below to answer the question.

IF (it is sunny and warm) -> {It is a good day to go on a picnic;}

ELSE IF (it is rainy or windy) -> {It is a good day to stay inside;}

ELSE -> {It is a good day to drink hot chocolate;}

1

It is a good day to go on a picnic.

2

It is a good day to stay inside.

3

It is a good day to drink hot chocolate.

4

It is a good day to go to the beach.

10

Multiple Choice

If I drank hot chocolate, then what weather occurred?

Read the statements below to answer the question.

IF (it is sunny and warm) -> {It is a good day to go on a picnic;}

ELSE IF (it is rainy or windy) -> {It is a good day to stay inside;}

ELSE -> {It is a good day to drink hot chocolate;}

1

It was sunny and warm.

2

It was rainy and cold.

3

It was cloudy and cold.

4

It was windy and cold.

11

Multiple Choice

What would happen if Elsa built a snowman?

Read the statements below to answer the question.

IF Elsa built a snowman --> {Anna would go and play;}

ELSE IF Elsa built a castle --> {Anna would try to stay in the castle;}

ELSE --> {Anna and Elsa starts to sing;}

1

Anna would go play

2

Anna would try to stay in the castle

3

Anna and Elsa starts to sing!

4

Nothing would happen

12

Multiple Choice

What is the outcome if Elsa did not build a snowman or a castle?

Read the statements below to answer the question.

IF Elsa built a snowman --> {Anna would go and play;}

ELSE IF Elsa built a castle --> {Anna would try to stay in the castle;}

ELSE --> {Anna and Elsa starts to sing;}

1

Anna would go and play

2

Anna would try to stay in the castle

3

Anna and Elsa starts to sing!

4

Nothing would happen

Conditional Statements in Programming

Show answer

Auto Play

Slide 1 / 12

SLIDE