
Tuples Part B

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
shilpa keesara
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the following variable
aTuple = ("Orange")
print(type(aTuple))
list
tuple
array
str
2.
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)
3.
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)
Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code
aTuple = (100, 200, 300, 400, 500)
print(aTuple[-4:-1])
IndexError: tuple index out of range
(200, 300, 400)
(100,300,500)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
aTuple = "Yellow", 20, "Red"
a, b, c = aTuple
print(a)
(‘Yellow’, 20, ‘Red’)
TyepeError
Yellow
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
tuple1 = (1120, 'a')
print(max(tuple1))
TypeError
1120
‘a’
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Python tuple can also be created without using parentheses
False
True
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Problem Solving using Python and R - UNIT II - Tuples

Quiz
•
12th Grade
10 questions
Data Structures Quiz

Quiz
•
12th Grade
14 questions
Python: списки, кортеж, словник, множина

Quiz
•
9th - 12th Grade
10 questions
9 . Lists, Tuples, Sets and Dictionary - 5

Quiz
•
12th Grade
10 questions
Python Vocab 1 Commands Quiz

Quiz
•
10th Grade - University
10 questions
TÌM HIỂU VÀ TUYÊN TRUYỀN PHÁP LUẬT (DEMO)

Quiz
•
9th - 12th Grade
10 questions
HTML Images

Quiz
•
9th - 12th Grade
13 questions
BE METER REVIEW #4

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade