
code hs unit 8 review
Authored by Alexahy Zapata
Computers, Fun
10th - 12th Grade
Used 84+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
About
This quiz focuses on Python programming fundamentals, specifically covering data structures including lists and tuples, and basic programming concepts such as variable assignment and control structures. The content is appropriate for grades 10-12, aligning with an introductory computer science or programming course. Students need to understand the fundamental differences between mutable and immutable data types, proper syntax for declaring lists and tuples, list methods like sort() and remove(), and iteration techniques including the use of enumerate() for accessing both index and value pairs. The questions assess critical programming concepts such as data type conversion using the list() function, loop structures with for statements, and the ability to trace through code execution to predict output. This represents core computational thinking skills that form the foundation for more advanced programming concepts. Created by Alexahy Zapata, a Computers teacher in the US who teaches grades 10-12. This quiz serves as an excellent review tool for students completing their introductory Python programming unit, making it ideal for formative assessment, homework assignments, or exam preparation. Teachers can use this as a warm-up activity to reinforce key concepts before moving to more complex programming challenges, or as a diagnostic tool to identify areas where students need additional support. The mix of multiple-choice questions testing conceptual understanding and fill-in-the-blank questions requiring precise terminology makes this versatile for both individual practice and classroom discussion. This assessment aligns with standards such as CSTA 3A-AP-14 (creating programs incorporating previously learned concepts) and CSTA 3A-AP-17 (decomposing problems into manageable subproblems), as students must demonstrate understanding of fundamental data structures and control flow mechanisms essential for computational problem-solving.
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about tuples?
Tuples are ordered.
Tuples are immutable.
Tuples can contain elements of different types.
Tuples use parentheses to access individual elements, rather than square brackets.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a tuple?
x = (1, 2, 3)
x = [1, 2, 3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python programs creates a list with the numbers 1 through 5?
my_list = (1, 2, 3, 4, 5)
my_list = [1, 2, 3, 4, 5]
my_list = 1, 2, 3, 4, 5
my_list = "1, 2, 3, 4, 5"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code snippets will correctly convert a string to a list?
my_string = "hello"
str_as_list = list(my_string)
my_string = "hello"
str_as_list = listify(my_string)
my_string = "hello"
str_as_list = make_list(my_string)
my_string = "hello"
str_as_list = new_list(my_string)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
time_of_day = ["morning", "afternoon", "evening"]
for word in time_of_day:
print("Good " + word)
Good morning, Good afternoon, Good evening
Good morning
Good afternoon
Good evening
Good morning
Good morning
Good morning
Good morning
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What code below will print the following?
Letter 1: T
Letter 2: i
Letter 3: m
name = "Tim"
name_list = list(name)
for index, value in enumerate(name_list):
print("Letter " + str(index+1) + ": " + value)
name = "Tim"
name_list = list(name)
for index, value in (name_list):
print("Letter " + str(index+1) + ": " + value)
name = "Tim"
name_list = list(name)
for index in enumerate(name_list):
print("Letter " + str(index) + ": " + value)
name = "Tim"
name_list = list(name)
for index, value in enumerate(name_list):
print(value + str(index))
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following program:
my_list = ["bananas", "oranges", "grapes", "pineapples", "apples"]
# You pick the code that goes here...
# ...
# ...
print(my_list)
Pick the code that results in the following output:
['apples', 'bananas', 'grapes', 'oranges', 'pineapples']
my_list.sort()
my_list.reverse()
my_list.sort()
my_list.reverse()
my_list.remove("grapes")
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?
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
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
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Elijah McCoy: Innovations and Impact in Black History
Interactive video
•
6th - 10th Grade