/
//
%
None of the mentioned
7
1
0
5
Left to Right
Right to Left
Can’t say
27
9
3
Addition and Subtraction
Multiplication, Division and Addition
Multiplication, Division, Addition and Subtraction
Addition and Multiplication
Exponential
Addition
Multiplication
Parentheses
int
bool
float
None
X^y
X**y
X^^y
What will be the output of the following Python expression?
print(4.00/(2.0+2.0))
Error
1.0
1.00
What will be the value of X in the following Python expression?
x = 2+9*((3*12)-8)/10
30.0
30.8
28.4
27.2
Which among the following list of operators has the highest precedence?
+, -, **, %, /, <<, >>, |
<<
**
|
What will be the value of the following Python expression?
print(float(4+int(2.39)%2))
5.0
4.0
4
4.0 + float(3)
5.3 + 6.3
5.0 + 3
3 + 7
float(‘10’)
int(‘10’)
float(’10.8’)
int(’10.8’)
print(4+2**5//10)
77
TRUE
FALSE
What will be the output of the following Python code snippet?
>>bool(‘False’) >>bool()
True True
False True
False False
True False
not(3>4) not(1&1)
not(-6<0 or-6>10)
-6>=0 and -6<=10
not(-6<10 or-6==10)
not(-6>10 or-6==10)
What will be the output of the following Python code?
x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)
[‘AB’, ‘CD’]
[‘ab’, ‘cd’, ‘AB’, ‘CD’]
[‘ab’, ‘cd’]
Infinite Loop