Search Header Logo

Python Review Part 1

Authored by Brittney Jones

Professional Development

6th - 8th Grade

Used 4+ times

Python Review Part 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What are the three necessary parts of an if statement?

if, a variable, a semi-colon

if, a print statement, a colon

if, a condition, a colon

if, a print statement, a semi-colon

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these words is used to begin a conditional statement?

when

input

if

unit

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol must be used at the end of an if statement?

:

.

#

"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The line after an if statement should begin with what?

#

a print statement

a colon

indentation

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which key do you press on the keyboard to indent a statement?

Tab

Shift

Enter

Ctrl

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Under what circumstances will the indented line of code immediately after an if statement be executed?

if the condition is false

if the condition is true

if the line begins with a #

if the line contains a variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When should a double equal sign (==) be used?

to set the value of a decimal variable

to set the value of a float variable

to check whether two pieces of data are actually equal

to indicate greater than or less than

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?