
class11 dict ,list and loops

Quiz
•
Computers
•
11th Grade
•
Hard
Vijayalakshmi Kavoor
Used 3+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
l = [5] * 10
print(len(l))
10
error
none
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
List1 = [4, 8, 12, 16]
List1[1:4] = [20, 24, 28]
print(List1)
[4, 20, 24]
Error
[4, 20, 24, 28]
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
List = [10, 20, 30, 40, 50]
List.append(60)
print(List)
List.append(60)
print(List)
[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60, 60]
[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60]
[60,10, 20, 30, 40, 50]
[60,60,10, 20, 30, 40, 50]
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select all the correct options to copy a list
aList = ['a', 'b', 'c', 'd']
newList = copy(aList)
newList = aList.copy()
newList.copy(aList)
newList = list(aList)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q:Predict the output of the following
for a in range(1,6):
if(a%2==0):
break
print(a)
else:
print("loop over")
2
4
1
2
4
loop over
1
loop over
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Write the output
aList = [1, 2, 3, 4, 5, 6, 7]
pow2 = [2 * x for x in aList]
print(pow2)
[2, 4, 6, 8, 10, 12, 14]
[1, 2, 3, 4, 5, 6, 7]
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code
aList = ["PYnative", [4, 8, 12, 16]]
print(aList[0][1])
print(aList[1][3])
P 8
Y 16
P
12
Y
16
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following?
aList = [5, 10, 15, 25]
print(aList[::-2])
[10, 5]
[15, 10, 5]
[25, 10]
9.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Dictionary as a whole is _____________
Mutable
immutable
Similar Resources on Wayground
10 questions
Python - Lists and Elements

Quiz
•
9th - 12th Grade
14 questions
Lists, Subroutines and Sequence in Pseudocode - Python

Quiz
•
1st - 11th Grade
10 questions
Python Review 2023-01-12

Quiz
•
9th - 12th Grade
11 questions
Python Review

Quiz
•
11th Grade
7 questions
Python Packing & Unpacking Review

Quiz
•
9th - 12th Grade
10 questions
Python

Quiz
•
1st - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Списки Python + Pygame

Quiz
•
KG - 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