Search Header Logo

Python Quiz

Authored by Heidi Holland

Instructional Technology

10th Grade

Used 1+ times

Python Quiz
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

What is a variable in Python?

A function that prints text

A way to store information

A type of loop

A way to start a program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to start a loop in Python?

for i to 10

loop i from 1 to 10

for i in range(10)

while i = 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print function do in Python?

It adds two numbers

It prints a document

It displays text or variables on the screen

It starts a new line

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for comments in Python?

#

@

//

*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a function in Python?

function myFunction()

def myFunction:

define myFunction()

def myFunction():

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables can change their values during the execution of a program.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The if statement is used to make decisions in a program.

True

False

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?