Search Header Logo

Conditional Statements

Authored by Elise Laio

Computers

9th Grade

Used 108+ times

Conditional Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

more than 7

more than 23

spam

7

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What part of an if statement should be indented?

All of it

The statements within it

the first line

the lines within the brackets

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An if statement must evaluate to:

Right or Wrong

True or False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value

==

!=

>

<

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the code:

team = ("Cowboys")

if team == "Cowboys":

print("Dallas is #1")

Error

Cowboys

Team

Dallas is #1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What best defines an IF statement in python?

Is an embedded string with a variable
An IF statement checks to see if a statement is true or false and then does one of two things depending on the result.

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will happen when this program is run?

Syntax error

One will be displayed

Zero will be displayed

One then Zero will be displayed

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?