
Exploring Lists and Tuples in APCSP
Authored by Soumini Karmarkar
Instructional Technology
12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tuple in Python?
A mutable collection of unordered items
An immutable collection of ordered items
A mutable collection of ordered items
An immutable collection of unordered items
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to access the second element of a list named `my_list` in Python?
`my_list[1]`
`my_list[2]`
`my_list.get(1)`
`second(my_list)`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you add an element to the end of a list named `my_list` in Python?
`my_list.add(element)`
`my_list.append(element)`
`my_list.insert(element)`
`my_list.push(element)`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python my_tuple = (1, 2, 3) print(my_tuple[1]) ```
`1`
`2`
`3`
`IndexError`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about tuples in Python?
Tuples can be modified after their creation.
Tuples are defined using square brackets `[]`.
Tuples are commonly used for heterogeneous data.
Tuples are faster to iterate through than lists.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list with five elements, all set to zero?
`[0] * 5`
`list(0, 0, 0, 0, 0)`
`[0 for i in range(5)]`
Both A and C are correct.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code snippet? ```python my_list = [1, 2, 3, 4, 5] my_list[3] = 10 print(my_list) ```
`[1, 2, 3, 10, 5]`
`[1, 2, 3, 4, 10]`
`IndexError`
`[10, 2, 3, 4, 5]`
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
12 questions
Learning About Computers
Quiz
•
1st - 12th Grade
15 questions
Welcome and Statements Review
Quiz
•
9th - 12th Grade
15 questions
Funções em JavaScript
Quiz
•
12th Grade
14 questions
Woodshop Safety
Quiz
•
9th - 12th Grade
10 questions
Fun with Numpy
Quiz
•
9th - 12th Grade
10 questions
Rbt Tingkatan 2 Bab 3 & 4
Quiz
•
1st Grade - University
10 questions
Websites & People's Need
Quiz
•
7th - 12th Grade
10 questions
Skill #2 - Flow Control with Decisions and Loops
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade