
Python Data Strucures
Quiz
•
Computers
•
11th Grade - University
•
Practice Problem
•
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
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?
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