Tuples

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following tuple operation
(aTuple = (100, 200, 300, 400, 500)
aTuple.pop(2)
print(aTuple)
(100, 200, 400, 500)
(100, 300, 400, 500)
AttributeError
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the following variable
aTuple = ("Orange")
print(type(aTuple))
list
tuple
array
str
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select which is true for Python tuple
A tuple maintains the order of items
A tuple is unordered
We can change the tuple once created
In tuples memory is overallocated
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
tuple1 = (1120, 'a')
print(max(tuple1))
TypeError
1120
‘a’
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
aTuple = (100, 200, 300, 400, 500)
aTuple[1] = 800
print(aTuple)
TypeError
(100, 800, 200, 300, 400, 500)
(800, 100, 200, 300, 400, 500)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
aTuple = (10, 20, 30, 40, 50, 60, 70, 80)
print(aTuple[2:5], aTuple[:4], aTuple[3:])
(30, 40, 50) (10, 20, 30, 40) (40, 50, 60, 70, 80) (20, 30, 40, 50) (
10, 20, 30, 40) (30, 40, 50, 60, 70, 80)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct way to access value 20 from the following tuple
aTuple = ("Orange", [10, 20, 30], (5, 15, 25))
aTuple[1:2][1]
aTuple[1:2](1)
aTuple[1:2][1]
aTuple[1][1]
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Lists and Tuples - Class 11 - Python

Quiz
•
11th Grade
13 questions
computer science

Quiz
•
11th Grade
19 questions
Lists and Tuples

Quiz
•
11th Grade
15 questions
Python Tuples Review

Quiz
•
11th Grade
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
10 questions
9 . Lists, Tuples, Sets and Dictionary - 4

Quiz
•
12th Grade
14 questions
PCS Typing Questions

Quiz
•
9th - 12th Grade
10 questions
Python Abstraction

Quiz
•
12th Grade
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