Tuples
Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content
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
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
16 questions
Python есептер 1
Quiz
•
9th - 12th Grade
16 questions
Topologias de Red
Quiz
•
11th Grade
20 questions
REMEDI PAS - DESAIN DAN KOMP. GRAFIS
Quiz
•
12th Grade
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
12 questions
Quizz Internet
Quiz
•
KG - Professional Dev...
20 questions
1.1.3 Proses Penyelesaian Masalah
Quiz
•
11th Grade
16 questions
Digital Icons
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
