
Python Data Strucures

Quiz
•
Computers
•
11th Grade - University
•
Medium
Kalyani Bedekar
Used 28+ times
FREE Resource
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct?
List is immutable and Tuple is mutable
List is mutable and Tuple is immutable
Both are Mutable.
Both are Immutable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using:
arr[-2]
arr[2]
arr[-1]
arr[1]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to get last element of list in python? Suppose we have list with name arr, contains 5 elements.
arr[0]
arr[5]
arr[last]
arr[-1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is immutable data type?
dict
int
set
list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is mutable data type?
tuple
str
int
set
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program :
print((1, 2) + (3, 4))
(1, 2), (3, 4)
(4, 6)
(1, 2, 3, 4)
Invalid Syntax
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can tuple be used as dictionary key in python?
True
False
Tuple is not used in python
None of the above
Create a free account and access millions of resources
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade