What is the result of the expression shown below if x = 56.236?
print("%.2f"%x)
56.00
56.24
56.23
0056.236
SHOW ANSWERWhat is the output of the code shown?
x= 33456789
%f%e%g' %(x, x,x)
Error
'3.3456789 3.3456789 +003345678'
'3.3456783.345678e+03.345678'
'3.3456793.345679e +00334568 '
SHOW ANSWERPython comment statement begins with ----------
Hash symbol(#)
Dollar Symbol ($)
Ampersand (&)
None of the above
SHOW ANSWERGroup of individual statements making up a single code block is called a --------- in Python
snippet
block
module
Suite
SHOW ANSWERWhich of the following is not a complex number?
k 2 +3
k complex(2, 3)
k = 2 +31
k 2+3
SHOW ANSWERWhat is the type of inf?
Boolean
Integer
Float
Complex
SHOW ANSWERWhat is the result of cmp(3, 1)
1
o
True
False
SHOW ANSWERWhich of these in not a core datatype?
Lists
Dictionary
Tuples
Class
SHOW ANSWERWhat datatype is the object below?
L [1, 23, 'hello', 1]
list
dictionary
array
tuple
SHOW ANSWERWhat is the average value of the code that is executed belo
>>>grade 1 = 80
>>>grade2 = 90
>>>average = (grade1 + grade2)/2
85
85.0
95
95.1
SHOW ANSWERWhat is the return value of trunc 0?
int
bool
float
None
SHOW ANSWERWhat is the output of the snippet of code shown below?
hello, 'morning[book(")
error
no output
hello
morning
SHOW ANSWERWhat is the output of the code shown below?
not(3 > 4)
not(1&1)
True
True
True
False
False
True
False
False
SHOW ANSWER