1. Home
  2. Data Science
  3. Python
  4. Which of the following expressions returns False?

Added 4 May 2024

Which of the following expressions returns False?

  1. bool(0) Correct answer
  2. bool("")
  3. bool([])
  4. bool(None)

Correct answer

A. bool(0)

17 views

MCQSEXAM

Explanation

The integer 0 evaluates to False when converted to a boolean.

Doubts & discussion

Not sure why the answer is A? 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