
Python Basics Quiz

Quiz
•
Other
•
9th Grade
•
Hard
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
Similar Resources on Wayground
31 questions
Bab 2 elektronika

Quiz
•
9th Grade
30 questions
Quiz PHP dan Tipe Data

Quiz
•
1st Grade - University
25 questions
Arduino BOE Bot MS

Quiz
•
9th - 12th Grade
26 questions
Lesson 2-3

Quiz
•
8th Grade - University
32 questions
QUIZ - Learn to Code 1

Quiz
•
9th Grade
32 questions
NFPA 2400 Practice Questions #5 (99-130)

Quiz
•
9th Grade
30 questions
Oklahoma Drivers Education Pre-Post Exam

Quiz
•
9th - 12th Grade
25 questions
ОЖСБ инф

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Biomolecules

Quiz
•
9th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade