Week 14 - Tuples
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

37 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Mia, Ava, and Mason are having a debate about Python data structures. Mia says both lists and tuples are mutable, Ava thinks lists are mutable whereas tuples are immutable, and Mason believes both lists and tuples are immutable. Who is correct?
Back
Ava: List is mutable whereas tuples are immutable.
2.
FLASHCARD QUESTION
Front
If the number 3 is the clue to the next location in the tuple c = ((7,5),(5,8),(0,-1),(4,3)), how would they refer to it?
Back
c[3][1]
3.
FLASHCARD QUESTION
Front
What is the index of the empty tuple y = () created by Luna?
Back
There is none. It is an empty tuple
4.
FLASHCARD QUESTION
Front
Anika, Nora, and Mia are having a debate. Anika says you can have an empty tuple z = () and an empty string w = []. Nora and Mia are not sure. Who is correct?
Back
Anika
5.
FLASHCARD QUESTION
Front
Given a = "Hello world", what does list(a) do in Python?
Back
It creates a list where each character is an item.
6.
FLASHCARD QUESTION
Front
Liam, Lily, and Benjamin are having a debate. Liam thinks you can have lists inside of tuples and vice versa, but Lily and Benjamin aren't so sure. Who do you think is correct?
Back
Liam
7.
FLASHCARD QUESTION
Front
Which Python statement would replace the second element ('bar') in the tuple t = ('They', 'bar', 'have', 'a', 'pepper') with the string 'quiznos'? Options: t[1] = 'quiznos', t(1) = 'quiznos', t[1:1] = 'quiznos', It's a trick question—tuples can't be modified.
Back
It's a trick question—tuples can't be modified.
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
33 questions
Cell Structures and Functions
Flashcard
•
6th Grade - University
37 questions
BOH4M Unit 1- Foundations of Management_MR_T
Flashcard
•
12th Grade
35 questions
Theatre Terminology
Flashcard
•
8th Grade - University
27 questions
Household Chores and Furniture Vocabulary
Flashcard
•
7th Grade - University
31 questions
Informações sobre a empresa Xbits
Flashcard
•
KG
35 questions
Flashcards - Continente asiático e China
Flashcard
•
KG - University
30 questions
Commonly confused words
Flashcard
•
12th Grade
24 questions
Materi Himpunan
Flashcard
•
7th Grade - University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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