Python If Else Statements

Python If Else Statements

9th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

c9c6 operating system

c9c6 operating system

7th - 9th Grade

23 Qs

2.3 Robust Programs

2.3 Robust Programs

9th - 11th Grade

25 Qs

Data Representation 1

Data Representation 1

10th Grade

28 Qs

DASAR PEMOGRAMAN

DASAR PEMOGRAMAN

9th Grade

25 Qs

INF_X_BAB 1 dan BAB 2

INF_X_BAB 1 dan BAB 2

10th Grade

25 Qs

Pra-PSPM SC025(F04)

Pra-PSPM SC025(F04)

12th Grade

24 Qs

Video Games

Video Games

KG - University

28 Qs

Repaso  Pseint

Repaso Pseint

9th - 12th Grade

23 Qs

Python If Else Statements

Python If Else Statements

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Forrest Ingram-Johnson

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The second part of if, that is executed when the condition is false

if
else
for
input

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which statement will check to see if a is equal to b?

if a == b
if a = b:
if a != b:
if a == b:

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output?

more than 7

more than 23

spam

7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol means "not equal to"?

==

<=

>=

!=

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which character must be at the end of the line for if?

:

;

.

{

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the = = symbol mean in Python?

Equal to or shows equality

Not Equal

Code that will be skipped

End of clause

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be displayed at the end of the program?

Case 1

Case 2

Nothing will be displayed.

Case 1 and Case 2

Create a free account and access millions of resources

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?