Font size
S
M
L
XL
WorksheetsPython Fundamentals -2
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Size of the string "Ant Man"
(a)
2.
L = [ 1, 23, 'hi',6 ]
Identify L
a)
dictionary
b)
tuple
c)
list
d)
set
3.
Negative index -1 belongs to the ______ of string
a)
first character
b)
last character
c)
second last character
d)
second character
4.
What is syntax?
a)
Syntax is the word used to describe a variable
b)
Syntax is the rules of the programming language
c)
This is used to read information
d)
It is used to output information
5.
Which of the following is mutable datatype?
a)
int
b)
str
c)
list
d)
bool
6.
Which of the following is immutable datatype?
a)
int
b)
set
c)
list
d)
dict
7.
Q20. Find the output :
a)
3 3 3
b)
3 1 5
c)
5 5 5
d)
3 5 1
8.
Q19. What will be the output :
>>> int('3'+'4')
a)
A. ‘7’
b)
B. 7
c)
C. 34
d)
D. ‘34’
9.
Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
a)
Error
b)
None
c)
25
d)
2
10.
L = ( 1, 23, 'hi',6 )
Identify L
a)
dictionary
b)
tuple
c)
list
d)
set
Reset
