Search Header Logo

Python-Selection Statement

Authored by Magda Khalil

Computers

9th Grade

CCSS covered

Used 52+ times

Python-Selection Statement
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Code executed based on a condition being true

Sequence
Selection
Iteration
Variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want more than one option for your code, what do you use (after if)?

elif
else
ifif

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character that must be at the end of the line for if?

:

;

.

,

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct way to create a variable in Python?

myVariable = 10

my Variable = 10

myVariable is 10

myVariable: 10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we comment code 

To explain what the code does 
To show how clever we are 
For fun 
No reason 

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the code do?

nothing

display Hello Bob

display I don't know you

display Hello

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To add selection in to a program, what would you use?

An 'int' command

A 'while' loop

An 'If' statement

a 'print' command

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?