
LIST And Tuple
Quiz
•
Science
•
University
•
Hard
Dr. 2669
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1. What will be the output of the following Python code?
a=[1,2,3,4,5,6,7,8,9]
print(a[::2])
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2. What will be the output of the following code snippet?
a=[1,2,3,4,5]
print(a[3:0:-1])
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
4. The below code is iterating over a nested Python list. What will be the output?
arr = [[1, 2, 3, 4],
[4, 5, 6, 7],
[8, 9, 10, 11],
[12, 13, 14, 15]]
for i in range(0, 4):
print(arr[i].pop())
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements given below is/are true about a Python tuple?
A. Tuples have structure, and lists have an order.
B. Tuples are homogeneous, and lists are heterogeneous.
C. Tuples are immutable, and lists are mutable.
D. All of them.
A&B
B&C
A & C
D&A
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
my_list = [1, 2, 3]
my_tuple = tuple(my_list)
print(my_tuple)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
my_list = [10, 20, 30, 40, 50]
What does my_list[2] return?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key difference between lists and tuples in Python?
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
15 questions
Signs of Chemical Reactions
Quiz
•
7th Grade - University
10 questions
CSI_Database
Quiz
•
University
10 questions
CFA: Thermal Energy Ch. 1
Quiz
•
6th Grade - University
15 questions
Cde Science
Quiz
•
8th Grade - University
15 questions
AP Biology Task Verbs
Quiz
•
12th Grade - University
15 questions
Superposition
Quiz
•
8th Grade - University
9 questions
BootCamp: HTML
Quiz
•
9th Grade - University
15 questions
Fast Science Review
Quiz
•
5th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Science
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University