1.What is the output after the following statement?
m= 28
n= 5p
printm//n)
a) 5.0
b) 6
c) 5
d) 4.0
2. What will be the output after the following statement?
m=90
n=7
print(m%n)
a) 6
b) 4
c) 6.0
d) 5.0
3. What will be the output of the following statement?
m = 79
n = 64
print(m<n)
a) m<n
b) False
c) True
d) No
4. What is the output of the following statement?
m= 92
n= 35
print(m>n)
a) True
b) False
c) yes
d) No
5. What is the output of the following statement?
m= false
n = true
print ( m and n)
a) m and n
b) False
c) True
d) mn
6. What Will be the output of the following statement?
m= true
n= false
print( m or n)
a) m or n
b) false
c) true
d) mn
7. What will be the output of the following statement?
m = true
n = false
print(not m)
a) not m
b) false
c) true
d) not defined
8. What will be the output of the following statement?
m= true
n= false
print('not n')
a) not n
b) false
c) true
d) not defined
9. What is the output of the following statement?
m= 7*5+8
print(m)
a) 91
b) 20
c) 47
d) 43
10. What will be the output of the following statement?
m= 9*(3+12)
print(m)
a) 45
b) 159
c) 95
d) 135
11. What will be the output of the following statement?
m= '40' + '01'
print(m)
a) 4001
b) 01
c) 41
d) 40
12. What will be the output of the following statement?
m = 81 + 34
print(m)
a) 8134
b) 81
c) 115
d) 34
13) What will be the output of the following statement if the user entered the number 45?
m= input('Enter the number:')
n= int(m)
a) float
b) string
c) List
d) Integer
14) What is the data type of m after the following statement?
m = ( 41,54,23,68)
a) Dictionary
b) Tuple
c) String
d) List
15. What is the data type of m after the following statement?
m = ['July', 'September', 'December']
n = m[1]
print(n)
a) ['July', 'September', 'December']
b) July
c) September
d) December
17. What will be the output of the following statement?
m = [45, 51, 67]
n = m[2]
print(n)
a) 67
b) 51
c) [ 45,51,67]
d) 45
18. What will be the output of the following statement?
m = [75, 23, 64]
n = m[0] + m[1]
print(n)
a) 75
b) 23
c) 64
d) 98
19. What will be the output of the following statement?
m = [ 'July', 'September', 'December']
n = m[0] + m[2]
print(n)
a) July
b) July December
c) July September
d) September December
20. What will be the output of the following statement?
m = 17
n = 5
O = m*n
print(o)
a) m*n
b) 17
c) 85
d) 5
Answers:
1) c
2) a
3) b
4) a
5) b
6) c
7) b
8) a
9) d
10) d
11) a
12) c
13) d
14) b
15) c
16) c
17) a
18) d
19) b
20) c