Python Basics Quiz

Python Basics Quiz

9th Grade

30 Qs

quiz-placeholder

Similar activities

ULANGAN HARIAN 1 MATERI BERITA KELAS VIII SMPN 2 TALUN

ULANGAN HARIAN 1 MATERI BERITA KELAS VIII SMPN 2 TALUN

8th Grade - University

25 Qs

New Zealand :>

New Zealand :>

KG - Professional Development

25 Qs

Study Guide Review Round 3

Study Guide Review Round 3

9th - 12th Grade

25 Qs

boop

boop

6th - 12th Grade

25 Qs

bahasa mandarin

bahasa mandarin

9th - 12th Grade

25 Qs

GINCANA SPAECE LP E MT - PARTE 2

GINCANA SPAECE LP E MT - PARTE 2

9th Grade

25 Qs

NOCTI Pretest Criminal Justice Police Science

NOCTI Pretest Criminal Justice Police Science

9th - 12th Grade

35 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Other

9th Grade

Practice Problem

Hard

Created by

Jomar Lauzon

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?