Python - List and Tuples

Flashcard
•
Computers
•
11th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the output of the following piece of code when executed in Python shell?
>>> a=("Check")*3
>>> a
Back
(‘CheckCheckCheck’)
2.
FLASHCARD QUESTION
Front
Is the following piece of code valid?
>>> a=(1,2,3,4)
>>> del a
Back
Yes, the entire tuple is deleted
3.
FLASHCARD QUESTION
Front
What type of data is: a=[(1,1),(2,4),(3,9)]?
Back
List of tuples
4.
FLASHCARD QUESTION
Front
Which of the following is true for a tuple? Options: Tup = 1,2,3, Tup = (""1,"2), Tup = (1,2,3,4), None of the above
Back
Tup = (1,2,3,4)
5.
FLASHCARD QUESTION
Front
Result of the program above is
Back
('1', '2', '3', '4', '5')
6.
FLASHCARD QUESTION
Front
Which statement replaces the second element ('bar') in the tuple t = ('foo', 'bar', 'baz') with the string 'qux'? Options: t[1] = 'qux', t(1) = 'qux', t[1:1] = 'qux', error
Back
error
7.
FLASHCARD QUESTION
Front
If list=[17,23,41,10] then list.append(32) will result
Back
[17,23,41,10,32]
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Data Structures Flashcard

Flashcard
•
11th Grade
15 questions
Semicolons

Flashcard
•
KG - 12th Grade
13 questions
Java ArrayLists

Flashcard
•
10th Grade
15 questions
TEST Semicolons, Colons, Dashes, Commas

Flashcard
•
11th Grade
15 questions
Adding, Subtracting, Scalar Multiplying Vectors

Flashcard
•
12th Grade
16 questions
Module review--Data Structures (Module 9)

Flashcard
•
9th - 12th Grade
20 questions
Strings, Lists & Tuples

Flashcard
•
9th - 12th Grade
18 questions
Кортежи в программировании

Flashcard
•
12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade