Search Header Logo

Python L1 Concepts

Authored by Jerry Xiao

Computers

1st - 12th Grade

Used 151+ times

Python L1 Concepts
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct file extension for saving Python files?

.txt

.scr

.py

No Extention

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the below statements is equal to:

sum = sum + number

sum = sum ++ number

sum += number

sum += sum + number

number += sum

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid ‘for’ loop?

for var in [1, 2, 3, 4]:

for var in range(1):

for var in range(1,2,3):

for var in range(1,2,3,4,5):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a ‘count-controlled’ loop?

for

while

if

else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a ‘condition-controlled’ loop?

for

while

if

else

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid ‘if’ statement?

if x < 5:

if x < 5 and x > 5:

if x = 5:

if x in [2, 3, 4]:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does input() do?

It converts a value to a string

It allows a user to input data

It checks equality of what is input to the function

It executes python code that a user submits

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?