Q. What will be the output of `print(0.1 + 0.2 == 0.3)`?

  • (A) True
  • (B) False
  • (C) Error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) False
Explanation: Due to floating-point precision, `0.1 + 0.2` is not exactly `0.3`.
Explanation by: Mr. Dubey
Due to floating-point precision, `0.1 + 0.2` is not exactly `0.3`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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