
Python Basics Quiz
Authored by Mr McCallion
Computers
9th - 12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A reserved memory location to store values
A mathematical equation
A type of snake in the Amazon rainforest
A type of data structure in Python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are all built-in data types in Python?
integer, float, string, boolean, list, dictionary
number, boolean, string, vector, class
variable, selection, iteration
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between integer and float data types?
Float data type stores both whole and decimal numbers, while integer data type stores only whole numbers.
Integer data type stores whole numbers, while float data type stores decimal numbers.
Integer data type can be used for text data, while float data type is only used for numerical data.
Integer data type stores decimal numbers, while float data type stores whole numbers.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a variable in Python?
value = variableName
variableName = value
variableName == value
value == variableName
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(type(5))?
5
<type 'int'>
NoneType
integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
x = 5
y = 'Hello'
print(x + y)
None
TypeError
10
SyntaxError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
x = 10
y = 3
print(x // y)
3
30
2.5
7
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Fundamentos PHP (Manejo de Fomularios y arreglos)
Quiz
•
9th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
Quiz 5 - Excel
Quiz
•
11th Grade
13 questions
Stepwise Refinement
Quiz
•
11th - 12th Grade
10 questions
Quiz Pemograman Web
Quiz
•
11th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade