
Python Quiz
Quiz
•
Mathematics
•
University
•
Medium
Elizabeth Awuku
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What is a variable in Python?
A. A function that performs a specific task
D. A data structure
C. A conditional statement
B. A container for storing data values
2.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
Which data type represents whole numbers in Python?
A. float
B. str
C. int
D. bool
3.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What does the 'if' statement do in Python?
A. Executes a block of code if a condition is true
B. Executes a block of code if a condition is false
D. Repeats a block of code
C. Checks another condition if the previous conditions were false
4.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What is the purpose of a 'for' loop in Python?
D. To check multiple conditions
C. To iterate over a sequence
B. To repeat a block of code as long as a specified condition is true
A. To execute a block of code if a condition is true
5.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What is a common method used with lists in Python to add an item?
D. pop()
C. append()
B. sort()
A. remove()
6.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What is a key characteristic of tuples in Python?
A. They are mutable
D. They cannot be changed
B. They are unordered
C. They can store items of different types
7.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What is a key feature of dictionaries in Python?
B. They can have duplicate keys
C. Keys must be unique
A. They are ordered
D. They are indexed by position
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
Bronze Level Quiz 8
Quiz
•
University
15 questions
C++ Conditional and Loop Statements - RECITATION
Quiz
•
University
10 questions
Type of samples - Exit Ticket
Quiz
•
12th Grade - University
10 questions
Intro to Python
Quiz
•
KG - University
8 questions
Algorithm and Programming Quiz
Quiz
•
University
12 questions
3rd Grade Measurement- Volume and Mass
Quiz
•
KG - University
11 questions
Chap 12
Quiz
•
7th Grade - University
11 questions
Density and Mass
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade