Search Header Logo

Python Part 2

Authored by Brian Chen

Computers

10th - 12th Grade

Used 1+ times

Python Part 2
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

30 sec • 1 pt

To repeat a fixed number of times use a

while loop
for loop
if loop
indentation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

if
else
for
input

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character that must be at the end of the line for if, while, for etc.

:
;
.
,

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python identifies blocks of code by

BEGIN and END keywords
{ and }
aligning up the starts of lines (indentation)
guessing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correctly-formatted comment?

#Comment
&Comment
""Comment""
!Comment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

stores a piece of data, and gives it a specific name

variable
whitespace
interpreter
modulo

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a line of text that Python won't try to run as code

comment
modulo
variable
boolean

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?