81. What will be the output of the following Python code?
print(‘{0:.2}’.format(1/3))
a) 0.333333
b) 0.33
c) 0.333333:.2
d) Error
82. What will be the output of the following Python code?
print(‘{0:.2%}’.format(1/3))
a) 0.33
b) 0.33%
c) 33.33%
d) 33%
83. What will be the output of the following Python code?
print(‘ab12’.isalnum())
a) True
b) False
c) None
d) Error
84. What will be the output of the following Python code?
print(‘ab,12’.isalnum())
a) True
b) False
c) None
d) Error
85. What will be the output of the following Python code?
print(‘ab’.isalpha())
a) True
b) False
c) None
d) Error
86. What will be the output of the following Python code?
print(‘a B’.isalpha())
a) True
b) False
c) None
d) Error
87. What will be the output of the following Python code snippet?
print(‘0xa’.isdigit())
a) True
b) False
c) None
d) Error
88. What will be the output of the following Python code snippet?
print(”.isdigit())
a) True
b) False
c) None
d) Error
89.What will be the output of the following Python code snippet?
print(‘my_string’.isidentifier())
a) True
b) False
c) None
d) Error
90. What will be the output of the following Python code snippet?
print(‘__foo__’.isidentifier())
a) True
b) False
c) None
d) Error
Pages 1 2 3 4 5 6 7 8 9 10 11 12 13