Search Header Logo

Introduction to Python Programming Quiz

Authored by Peter Chan Chan

Information Technology (IT)

10th Grade

Used 3+ times

Introduction to Python Programming 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 the purpose of the print() function in Python?

To take user input

To display output

To define a variable

To create a loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare a variable in Python?

var length = 10

let length = 10

length := 10

length = 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function return in Python?

An integer

A float

A string

A list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is NOT supported in Python?

Character

String

Float

Integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(type(12.0)) in Python?

bool

int

float

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^^

exp

**

^

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to start a for loop in Python?

for i in range(5):

for (i = 0; i < 5; i++)

for i = 0 to 5

for i in 5

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?