WorksheetsYou know what it is
Total questions: 6
Worksheet time: 6mins
Name
Class
Date
1.
What is the output of this code?
list=[1,2,3,4]
print(list[1])
a)
1
b)
2
c)
3
d)
4
2.
what is the element of the 5?
list=[1,3,2,4]
list.append[5]
a)
5
b)
4
c)
6
d)
TypeError
3.
What number is deleted?
list=(1,3,2,5,4)
del list[3]
a)
5
b)
2
c)
type error
d)
2
4.
What number is printed?
list=(1,2,4,3,5,7)
length=len(list)
print(length)
a)
5
b)
6
c)
7
d)
TypeError
5.
What number is the third element after it prints?
list=[1,2,4,3,5]
list.reverse()
print(list)
a)
5
b)
3
c)
4
d)
2
6.
What is printed?
list=(1,2,3,4,5)
print(list[1:2])
a)
2
b)
3
c)
(2,)
d)
(3,)
100 %
