Worksheetspython_basics
Total questions: 10
Worksheet time: 8mins
Name
Class
Date
1.
How would would you print a text string?
a)
output "Hello!"
b)
print ("Hello!")
c)
print (Hello!)
d)
output (Hello!)
2.
Python is a.....
a)
Interpeted languae
b)
object oriented
c)
procedural
d)
all of above
3.
values = [[3, 4, 5, 1], [33, 6, 1, 2]]
values[0][0]
what is output ?
a)
3
b)
33
c)
4
d)
6
4.
3 in [4,5,6,3,8]
what is output of above line ?
a)
True
b)
False
c)
none
d)
null
5.
list is a..
a)
collection of similar data type
b)
collection of disimilar data type
c)
collection of strings
d)
none of above
6.
set is a...
a)
collection of similar data type
b)
collection of disimilar data type
c)
collection of strings
d)
none of the abovve
7.
WHICH OF FOLLOWING IS IMMUTABLE TYPE ?
a)
LIST
b)
SET
c)
DICTIONARIES
d)
STRING
8.
LIST1=[ANNAMACHARYA ]
LIST1[-2]
what is output of above scenario?
a)
A
b)
N
c)
Y
d)
R
9.
A=10
B=10
is id(A) == id(B) ?
a)
True
b)
False
10.
a=1
b=a
a=2
b=?
a)
2
b)
1
c)
3
d)
0
100 %
