Python Forum
question 1 on the midterm exam
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question 1 on the midterm exam
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
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.
Reply
#3
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020