Search Header Logo

Review IF statement & Loop

Authored by Hessa Mubarkalahbabi

Computers

7th Grade

Used 23+ times

Review IF statement & Loop
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If else statement

Outputs a message on the screen

Gets data from the user

A decision

A loop controlled by a decision

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Input statement

Outputs a message on the screen

Gets data from the user

A decision

A loop controlled by a decision

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Print statement

Outputs a message on the screen

Gets data from the user

A decision

A loop controlled by a decision

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the output be from the following code?
print("Hello world!")

SyntaxError
Hello world!
"Hello world!"
print(Hello world!)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of a loop in programming?

To repeat a block of code

To make decisions

To store data

To output results

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the function of a variable in programming?

To store data values

To perform calculations

To control program flow

To display output

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A while loop can have an optional else clause that executes when the loop condition becomes false.

True

False

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?