Search Header Logo

Python Basics Quiz

Authored by Jomar Lauzon

Other

9th Grade

Used 1+ times

Python Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Python function returns the memory identity of an object?

type()

id()

mem()

obj()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, integers can be as large as possible because:

They are limited by 32-bit architecture

Python 3 removes fixed-size limits

They must be less than 64-bit

They overflow like in C

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you try 05 in Python 3?

Returns 5

Treated as octal

SyntaxError

Returns 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used for floor division in Python?

/

//

%%

div

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What error occurs when dividing by zero in Python?

MathError

ZeroDivisionError

RuntimeError

ArithmeticError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents a valid float literal in Python?

5.0

5,0

.0.5

0,5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When multiplying a float by an int, the result will be:

int

float

bool

str

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?