Q. What will be the value of x in the
following Python expression?
x = int(43.55+2/2)

  • (A) 43
  • (B) 44
  • (C) 22
  • (D) 23
πŸ’¬ Discuss
βœ… Correct Answer: (B) 44
Explanation: The expression shown above is
an example of explicit conversion. It is
evaluated as int(43.55+1) = int(44.55) = 44.
Hence the result of this expression is 44.

Explanation by: Mr. Dubey
The expression shown above is
an example of explicit conversion. It is
evaluated as int(43.55+1) = int(44.55) = 44.
Hence the result of this expression is 44.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
552
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate