Python module 3 review: Basic Python and Console Interaction

Python module 3 review: Basic Python and Console Interaction

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Medium

Created by

Brendan Aydt

Used 57+ times

FREE Resource

Student preview

quiz-placeholder

31 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

1 min • 1 pt

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

if
else
for
input

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

:
;
.
,

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Converts a number to a string

str()
int()
parseInt()
convert

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python identifies blocks of code by

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

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a correctly-formatted comment?

#Comment
&Comment
""Comment""
!Comment

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

variable
whitespace
interpreter
modulo

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?