Does it seem reasonable to you to assume that a task on your job interview will be answered with "I'll take someone elses library" and they'll just be "ah, ok, you're hired!"?
Yes, because that's the correct answer in a real-world situation. If you want to play some game with the applicant, be sure to tell them you're playing fantasy and not reality.
Yes and I usually say that. It’s not meant as a trick question. Sometimes I’ll prefix it with “While you would never do this is real life, please walk me through how you would design and implement a database connection pool...”
I got asked a python question that involved a couple of list comprehensions. I did it and got asked how to do it without an intermediate variable. It involved nesting the list comprehensions, and I nearly didn't get it, not because I didn't understand how to do it, just that I have a personal rule never to do that, as it makes code quite difficult to read.