Search Header Logo

Python - Chapter 3 Practice Quiz

Authored by Greg Michael

Information Technology (IT)

12th Grade

Python - Chapter 3 Practice Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable in Python is...

A named container that stores values.

A function that executes code.

A constant value that cannot be changed.

An error encountered during execution.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an assignment statement do in Python?

It assigns a value to a variable.

It performs arithmetic operations.

It performs logical operations.

It takes input from the user.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, the '=' symbol...

denotes an assignment operation.

denotes an equality check.

denotes a comparison operation.

denotes a subtraction operation.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The left side of an assignment in Python must be...

A literal

A variable

An expression

A function call

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about Python identifiers?

They can include letters, digits, and underscores, but cannot start with a digit.

They can start with a digit and include any characters.

They must start with an underscore and can only include letters.

They can only consist of digits.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is case-sensitive. True or False?

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what is a floating-point number?

A number with a fractional part, represented with a decimal point.

A whole number without a fractional component.

A number expressed in exponential notation only.

A string representing a number.

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?