1. Home
  2. Data Science
  3. Python
  4. Which of the following statements about floats in Python…

Added 4 May 2024

Which of the following statements about floats in Python is true?

  1. Floats cannot represent negative numbers.
  2. Floats have infinite precision.
  3. Floats are always displayed with a fixed number of decimal places.
  4. Floats can be used to represent fractions accurately. Correct answer

Correct answer

D. Floats can be used to represent fractions accurately.

14 views

MCQSEXAM

Explanation

 Floats can represent fractions accurately, but they have limited precision due to their binary representation.

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs