TUPLES

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
Madhu Singh
Used 13+ times
FREE Resource
Student preview

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
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade
12 questions
Classifying Polys - 1.1

Quiz
•
10th - 12th Grade
20 questions
1.1 (b) Add / Sub/ Multiply Polynomials

Quiz
•
12th Grade