
Python 2 Reference Guide Quiz

Quiz
•
Computers
•
12th Grade
•
Easy
Jennie Phipps
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
[AP CSP] Midterm Review (Semester 1)

Quiz
•
9th - 12th Grade
24 questions
Python Basics Unit 3.1

Quiz
•
12th Grade
22 questions
Coding basics

Quiz
•
4th - 12th Grade
23 questions
Ôn tập kì Xuân Tin học 10. 2

Quiz
•
10th Grade - University
21 questions
Programowanie - napisy, szyfrowanie, proste algorytmy

Quiz
•
12th Grade
30 questions
REVISÃO PYTHON

Quiz
•
9th - 12th Grade
21 questions
Quiz B1 về Mảng trong Python

Quiz
•
12th Grade
26 questions
Python Files Class XII

Quiz
•
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