Python Forum
question 1 on the midterm exam - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: question 1 on the midterm exam (/thread-12984.html)



question 1 on the midterm exam - Skaperen - Sep-22-2018

question 1 on the midterm exam:

>>> bool('False')
True
>>>
why?

who would make an exam like that?

would anyone answer this correctly?

would you put it on the final exam?


RE: question 1 on the midterm exam - j.crater - Sep-22-2018

I wouldn't make all the questions on exam like that, but it looks alright to me. It's simple test of understanding what kind of data is treated as True or False, which is very useful to know when using conditional statements.


RE: question 1 on the midterm exam - Mekire - Sep-22-2018

Well, it is definitely a trick question so you can get things like that wrong just because you aren't paying enough attention to what you assumed was a straight-forward honest question.

For bonus points at the end of a test or something though, sure.