Python Basics Quiz

Python Basics Quiz

9th Grade

30 Qs

quiz-placeholder

Similar activities

LE 400 Chap 2

LE 400 Chap 2

9th - 12th Grade

30 Qs

Court Systems & Structures Part 2

Court Systems & Structures Part 2

9th - 12th Grade

26 Qs

Stock Market - Pre-Assessment

Stock Market - Pre-Assessment

9th - 11th Grade

25 Qs

Kiểm tra Tin 11 cuối học kì 1 2022-2023

Kiểm tra Tin 11 cuối học kì 1 2022-2023

1st - 10th Grade

28 Qs

Python Basics Quiz

Python Basics Quiz

9th Grade

30 Qs

Ch. 1 SQ (UTS)

Ch. 1 SQ (UTS)

9th Grade - University

25 Qs

Computer Troubleshooting

Computer Troubleshooting

7th - 10th Grade

30 Qs

Play with Python Lib

Play with Python Lib

KG - Professional Development

25 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Other

9th Grade

Hard

Created by

Jomar Lauzon

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?