Choose the correct option with respect to Python.
Python Test 3A

Quiz
•
Professional Development
•
Professional Development
•
Hard
saurabh srivastava
Used 62+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Both tuples and lists are immutable.
Tuples are immutable while lists are mutable.
Both tuples and lists are mutable.
Tuples are mutable while lists are immutable.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
tuple1=(5,1,7,6,2)
tuple1.pop(2)
print(tuple1)
(5,1,6,2)
(5,1,7,6)
(5,1,7,6,2)
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
tuple1=(2,4,3)
tuple3=tuple1*2
print(tuple3)
(4,8,6)
(2,4,3,2,4,3)
(2,2,4,4,3,3)
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
tupl=("annie","hena","sid")
print(tupl[-3:0])
("annie")
()
None
Error as slicing is not possible in tuple.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following options will not result in an error when performed on tuples in Python where tupl=(5,2,7,0,3)?
tupl[1]=2
tupl.append(2)
tupl1=tupl+tupl
tupl.sort()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
tupl=()
tupl1=tupl*2
print(len(tupl1))
0
2
1
Error as tuple object has no attribute to len
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
tupl=([2,3],"abc",0,9)
tupl[0][1]=1
print(tupl)
([2,3],"abc",0,9)
([1,3],"abc",0,9)
([2,1],"abc",0,9)
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Simple Python Quiz

Quiz
•
Professional Development
14 questions
ABREDES - Devasc Python

Quiz
•
Professional Development
15 questions
python dictionary and set

Quiz
•
Professional Development
9 questions
Quiz - 2

Quiz
•
Professional Development
12 questions
Python 71 Quiz

Quiz
•
Professional Development
15 questions
Data Analytics Internship Quiz 12

Quiz
•
Professional Development
10 questions
Python Functions

Quiz
•
Professional Development
14 questions
PYTHON BASICS

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade