Python - List and Tuples
Flashcard
•
Computers
•
11th - 12th Grade
•
Practice Problem
•
Hard
Wayground 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]
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
Present continuous - questions
Flashcard
•
12th Grade
9 questions
Average Items
Flashcard
•
12th Grade
20 questions
Present perfect continuous.
Flashcard
•
11th Grade
13 questions
Upper 2: Passive voice
Flashcard
•
9th - 12th Grade
15 questions
Semicolon Practice 1
Flashcard
•
10th Grade
15 questions
EOC Review: Genetics Part II
Flashcard
•
10th Grade
15 questions
Final Review
Flashcard
•
10th Grade
15 questions
Work & Power Flashcard
Flashcard
•
10th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade