Python Review Part 1

Python Review Part 1

6th - 8th Grade

25 Qs

quiz-placeholder

Similar activities

IF-Clause By T.Kenny

IF-Clause By T.Kenny

7th Grade - Professional Development

20 Qs

Pemrograman Scratch: Variabel dan Kontrol

Pemrograman Scratch: Variabel dan Kontrol

8th Grade

20 Qs

Microsoft Server Admin 98-365 Part 3

Microsoft Server Admin 98-365 Part 3

KG - Professional Development

22 Qs

Proff Comm Micro Burst Final

Proff Comm Micro Burst Final

8th Grade

20 Qs

FOOTBALL VOCABULARY

FOOTBALL VOCABULARY

1st Grade - University

20 Qs

REVISION 3 : TOPIC 3, 4, 5 & 7

REVISION 3 : TOPIC 3, 4, 5 & 7

1st Grade - University

20 Qs

Lesson 2-keywords and operators-1

Lesson 2-keywords and operators-1

5th - 8th Grade

20 Qs

Python Review Part 1

Python Review Part 1

Assessment

Quiz

Professional Development

6th - 8th Grade

Hard

Created by

Brittney Jones

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Professional Development