CodeHS
Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content in a minute
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?
Similar Resources on Wayground
13 questions
Stepwise Refinement
Quiz
•
11th - 12th Grade
10 questions
Kuis Refleksi 2
Quiz
•
9th - 12th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
