Yes, they can Google the answer in 3s.
Yes, I could also ask a long-form question about how they would approach wrapping an IO interface in Python.
But if they don't understand `with` or resource/context management, the chances that they would produce a reasonable answer to the long-form question are tiny. They will produce an answer anyways, and it will likely be a waste of time. So we cut to the chase and target the core concepts directly.
You can google many things easily. Understanding the answer and knowing how to apply it to different problems matters a lot more. I still expect some concepts and definitions to be remembered if you’re claiming expertise in a topic.
that's wrong?
I hate those types of trick questions.