Which statement replaces the second element ('bar') with the string 'qux' in the tuple t = ('foo', 'bar', 'baz')?
Lists & Tuples

Flashcard
•
Computers, Education
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
It’s a trick question—tuples can’t be modified.
2.
FLASHCARD QUESTION
Front
Which function is used to count the number of elements in a list? Options: count( ), find( ), len( ), index( )
Back
len( )
3.
FLASHCARD QUESTION
Front
Let list1=[2,4,6,8,10]. What will print(list1[-2]) result in?
Back
8
4.
FLASHCARD QUESTION
Front
Which of the following statements is NOT correct?
A list is mutable
A tuple is immutable
The append function is used to add an element
The extend function adds an element to a tuple
Back
The extend function adds an element to a tuple
5.
FLASHCARD QUESTION
Front
If list1=[10,20,30,40,50] then list1[2]=35 will result in:
Back
[10,20,35,40,50]
6.
FLASHCARD QUESTION
Front
If list1=[17,23,41,10] then list1.append(32) will result in:
Back
[17,23,41,10,32]
7.
FLASHCARD QUESTION
Front
Which of these is the correct code for creating a list of names? Options: nameList = John, Harry, Jesse, John, Harry, Harry; nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry"); nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]; nameList = [John, Harry, Jesse, John, Harry, Harry]
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
9.6.1 Extending Data Structures Flashcard

Flashcard
•
9th - 12th Grade
13 questions
Python Arrays

Flashcard
•
9th - 12th Grade
16 questions
Creating & Altering Data Structures module review (Module 8)

Flashcard
•
9th - 12th Grade
20 questions
Int Prog: Lists and Functions

Flashcard
•
9th - 12th Grade
15 questions
Lists and Tuples in Python

Flashcard
•
9th - 12th Grade
15 questions
Lists and Tuples in Python

Flashcard
•
9th - 12th Grade
15 questions
John Williams

Flashcard
•
KG - University
14 questions
PYTHON -- Lists v2

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade