Complex if statements

Complex if statements

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

emtech

emtech

12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

IT related jobs

IT related jobs

9th Grade

9 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Complex if statements

Complex if statements

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Barbara Anderson

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is optional in an if statement?

if

:

else

Comparison statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many else's can you have in an if statement?

one

as many as needed

several

none

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you know which if an else goes with?

It goes with the one with the same comparison statement

It goes with the first if in the program

It goes with the if directly above it

It goes with the if with the same name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does an if statement's body run?

When it is next in the code sequence

When the comparison statement returns True

When the comparison statement returns False

After an else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

X=5

y=5

Which checks to see if x and y are the same in an if statement?

x=y

x equals y

x!=y

x==y

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When should you use an elif statement?

When checking two outcomes

When checking one outcome

When checking more than two outcomes

When you want to run two difference scenarios

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which comparison operator checks to see if two variables are not equal?

<>

NOT=

>=

!=

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Will both the onMouseMove and onMouseDrag execute when you click and drag the mouse?

no

yes

sometimes

Only if done very quickly