Python - List and Tuples
Flashcard
•
Computers
•
11th - 12th Grade
•
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]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
Upper 2: Passive voice
Flashcard
•
9th - 12th Grade
17 questions
Vocabulary Flashcard (Words 1-20)
Flashcard
•
9th - 12th Grade
10 questions
Purpose Clauses
Flashcard
•
10th - 11th Grade
19 questions
VOCABULARY
Flashcard
•
11th Grade
20 questions
Meeting Deadlines in College
Flashcard
•
KG - University
10 questions
Main Idea
Flashcard
•
11th Grade
20 questions
Intermolecular forces
Flashcard
•
11th Grade
16 questions
Upper 2: Passive voice
Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade