
PP_Week7_Batch1

Quiz
•
Computers
•
University
•
Hard
Narasimha Reddy Soora
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct option with respect to Python.
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?
tupl=("annie","hena","sid")
print(tupl[-3:0])
("annie")
()
None
Error as slicing is not possible in tuple.
4.
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
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are true of Python lists?
A list may contain any type of object except another list
A given object may appear in a list more than once
All elements in a list must be of the same type
These represent the same list:
['a', 'b', 'c']
['c', 'a', 'b']
There is no conceptual limit to the size of a list
6.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
List a is defined as follows:
a = [1, 2, 3, 4, 5]
Select all of the following statements that remove the middle element 3 from a so that it equals [1, 2, 4, 5]:
a[2:3] = []
a[2] = []
a.remove(3)
a[2:2] = []
del a[2]
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider this assignment statement:
a, b, c = (1, 2, 3, 4, 5, 6, 7, 8, 9)[1::3]
Following execution of this statement, what is the value of b:
5
4
3
6
7
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Tuples

Quiz
•
4th Grade - Professio...
15 questions
Python - from 0 to HERO

Quiz
•
University
12 questions
Data visualization

Quiz
•
10th Grade - University
15 questions
Database concepts

Quiz
•
University
15 questions
PYTHON UNIT I MCQS

Quiz
•
University
10 questions
Python программалоо тили киришүү

Quiz
•
University
15 questions
Python Language Programming

Quiz
•
University
10 questions
Programación Avanzada II - Parte 5

Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University