python
python
4+3%5
a) 7
b) 2
c) 4
d) 1
2*(3*2)
(2*3)*2
2*3*2
a) 512, 64, 512
b) 512, 512, 512
c) 64, 512, 64
d) 64, 64, 64
6. What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
a) -4
b) -3
c) 2
d) False
x = 'abcd'
for i in range(len(x)):
print(i)
a) error
b) 1 2 3 4
c) a b c d
d) 0 1 2 3
10. What will be the output of the following Python program?
def addItem(listParam):
listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))
a) 5
b) 8
c) 2
d) 1
y=x + str(9)
A. 64
B. 9
C. 559
D. Error
b = ++a
print(b is a)
A. True
B. False
C. Error
D. None of the above