IfThenElse

IfThenElse

Assessment

Interactive Video

Information Technology (IT)

7th Grade

Practice Problem

Easy

Created by

John Streety

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a conditional statement used for?

To make decisions based on conditions

To display information

To store data

To repeat actions multiple times

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of an 'if-then' statement?

If you eat, then you sleep

If you run, then you walk

If you study, then you learn

If it rains, then we stay dry

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when a condition in a block of code is true?

The code performs the action inside the block

The code stops running

The code repeats the action

The code does nothing

4.

OPEN ENDED QUESTION

3 mins • 1 pt

What did you learn through this video?

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the coding activity, what is the purpose of the 'if-then-else' block?

To print a message

To calculate the sum of ages

To compare ages and determine who is older

To compare two numbers

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating the age comparison project?

Create a new project called Age Detector

Print the ages

Test the conditions

Run the code

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Similar Resources on Wayground