a) True b) False Answer: b Explanation: The value of the expression (2**2)**3 = 4**3 = ...
View Question
What will be the value of the following Python expression?
4+2**5//10
What will be the value of the following Python expression? 4+2**5//10 a) 3 b) ...
View QuestionWhich of the following expressions results in an error?
a) float(‘10’) b) int(‘10’) c) float(’10.8’) d) int(’10.8’)
View QuestionWhich of the following expressions is an example of type conversion?
a) 4.0 + float(3) b) 5.3 + 6.3 c) 5.0 + 3 d) 3 + 7 Answer: a Explanation: ...
View Question
What will be the value of the following Python expression?
float(4+int(2.39)%2)
What will be the value of the following Python expression? float(4+int(2.39)%2) a) 5.0 b) 5 c) 4.0 d) 4
View Question
Which among the following list of operators has the highest precedence?
+, -, **, %, /, <<, >>, |
Which among the following list of operators has the highest precedence? +, -, **, %, /, <<, ...
View Question
What will be the output of the following Python expression?
24//6%3, 24//4//2
What will be the output of the following Python expression? 24//6%3, 24//4//2 a) (1,3) b) (0,3) c) ...
View QuestionWhich of the following expressions involves coercion when evaluated in Python?
a) 4.7 – 1.5 b) 7.9 * 6.3 c) 1.7 % 2 d) 3.4 + 4.6
View Question
What will be the value of X in the following Python expression?
X = 2+9*((3*12)-8)/10
What will be the value of X in the following Python expression? X = 2+9*((3*12)-8)/10 a) 30.0
View Question
What will be the output of the following Python expression?
print(4.00/(2.0+2.0))
What will be the output of the following Python expression? print(4.00/(2.0+2.0)) a) Error b) 1.0 c) 1.00 d) 1 Answer: ...
View Question