
Mastering Python: Data Types & Functions
Quiz
•
English
•
Professional Development
•
Practice Problem
•
Hard
Kidi Tran
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the variable `x` in the following Python code snippet? ```python x = 3.14 ```
int
float
str
bool
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to define a function in Python?
`def my_function:`
`function my_function()`
`def my_function():`
`my_function() = function`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python x = "Hello" y = "World" z = x + " " + y print(z) ```
`HelloWorld`
`Hello World`
`Hello, World`
`World Hello`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a built-in data type in Python?
list
tuple
array
dict
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python def add(a, b): return a + b result = add(3, 4) print(result) ```
7
34
`add(3, 4)`
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is used to import a module in Python?
`import module_name`
`include module_name`
`require module_name`
`using module_name`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression in Python? ```python 5 // 2 ```
2.5
2
3
2.0
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
13 questions
Paper 1 English AQA
Quiz
•
8th Grade - Professio...
10 questions
Principles of Language Learning
Quiz
•
Professional Development
12 questions
Interchange Intro B - Units 13 and 14
Quiz
•
Professional Development
13 questions
Love is in the Air (Flower Thrower)
Quiz
•
Professional Development
11 questions
Past simple & continuous
Quiz
•
Professional Development
11 questions
Adjectives and Adverbs
Quiz
•
Professional Development
10 questions
Teacher Roles
Quiz
•
University - Professi...
10 questions
Present Perfect and Present Perfect continuous
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for English
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
