Search Header Logo

Basic Python

Computers

10th - 12th Grade

Used 2K+ times

Basic Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 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

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?