57). What will be the value of X in the following Python expression?
X = 2+9*((3*12)-8)/10

[A]30.0
[B]30.8
[C]28.4
[D]27.2

Show Answer

58). Which of the following expressions involves coercion when evaluated in Python?
X = 2+9*((3*12)-8)/10

[A]4.7 – 1.5
[B]7.9 * 6.3
[C]1.7 % 2
[D]3.4 + 4.6

Show Answer

59). What will be the output of the following Python expression?
24//6%3, 24//4//2

[A](1,3)
[B](0,3)
[C](1,0)
[D](3,1)

Show Answer

60). Which among the following list of operators has the highest precedence?
 +, -, **, %, /, <<, >>, |

[A]<<, >>
[B]**
[C]|
[D]%

Show Answer

61). 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

Show Answer

62). Which of the following expressions is an example of type conversion?
float(4+int(2.39)%2)

[A]4.0 + float(3)
[B]5.3 + 6.3
[C]5.0 + 3
[D]3 + 7

Show Answer

63). Which of the following expressions results in an error?
float(4+int(2.39)%2)

[A]float(‘10’)
[B]int(‘10’)
[C]float(’10.8’)
[D]int(’10.8’)

Show Answer

64). What will be the value of the following Python expression?
4+2**5//10

[A]3
[B]7
[C]77
[D]0

Show Answer

65). The expression 2**2**3 is evaluates as: (2**2)**3.
4+2**5//10

[A]True
[B]False
[C]none
[D]none of the mentioned

Show Answer