
Python 2 Reference Guide Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Jennie Phipps
Used 2+ times
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a for loop in Python?
To repeat a block of code for each item in a list
To define a function
To check if a condition is true
To access items in a dictionary
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indentation isn't important in Python.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you are indexing, you start counting at ____, but when you are measuring length you start at _______.
0, 1
1, 0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lists use ______, while dictionaries use ________, and tuples use _________.
(), {},[]
[], {},()
{},[],()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the round() function do in Python?
Returns the smallest number in a list
Rounds a number to the nearest integer
Rounds a number to the specified amount of decimal points
Returns the largest number in a list
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a while loop in Python?
To define a function
To repeat a block of code for each item in a list
To access items in a dictionary
To check if a condition is true
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of function parameters in Python?
To access items in a list
To loop through a dictionary
To pass data into a function
To define a function
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
21 questions
Experience AI Lessons - Summative Assessment
Quiz
•
8th Grade - University
30 questions
Quiz Herramientas TIC
Quiz
•
12th Grade
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
22 questions
C# start
Quiz
•
11th - 12th Grade
21 questions
Inteligencia Artificial
Quiz
•
10th Grade - University
21 questions
IP Address
Quiz
•
10th - 12th Grade
29 questions
TMK TAHUN 5
Quiz
•
KG - University
23 questions
Quiz de Modelagem de Dados
Quiz
•
12th Grade
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
