For instance: What does 'printf("hello, world\n");' do? Obviously, it prints something, but how does it do that? Pretty quickly you're talking about includes, macros, libc, linking, machine code, system calls... One question can easily fill an entire interview slot.
The fun thing is there's no "right" answer. Nobody is expected to know everything about how software works, but everyone is expected to know something. This format gives the interviewee the opportunity to show off what they know best, and the interviewer gets to pry in to see how deeply they know it.
I'm a low-level guy so that's the direction I tend to probe. Usually someone else asks a similarly abstract high-level question. One of my favorites is: "Design a parking garage". Again, there's no right answer. It's a prompt for the candidate to show what they know. Very quickly they're coming up with functions and class hierarchies and/or data structures for vehicles, spaces, turnstiles, payment kiosks, figuring out how to pass them around, etc. The interviewer has plenty of opportunities to pry into design tradeoffs, add complications, and so on.
The grand idea is to have a deep conceptual discussion instead of just seeing if they can write a few lines of code. This also demonstrates how well they can communicate. The catch is you have to be sure they give some actual concrete answers in a few places, and aren't just fast talkers.
Servers go by the menu as well. It isn't like there is a list most places.
If the owners cared about your allergies, they'd make sure their staff could find out easily. Blame the folks that own the place, not the servers.
As someone with Celiac disease, who often eats at restaurants, this is a bit of an understatement. Even in restaurants where things are marked allergen free on the menu, it is often the case that staff will make mistakes. More often than not, staff aren't even informed about the basics of food, things like eggs and dairy being two separate foods, or that they can't just scrape some sauce off of a bun if they put it there by mistake, etc. If I had a life threatening allergy, I would never set foot in a restaurant. It's terrifying.
If you look at photos of people doing some of these exercises, their eyes are closed or they're wearing something over their eyes. This is to invoke non-visual means of balancing, which is really important.
https://www.theregister.com/2023/10/11/github_ai_copilot_mic...
"Make it profitable" appears a secondary concern in the AI space.