I always thought that coding questions during interviews were stupid anyways even before AI: it's information that one can simply look up with a simple internet search or programming book.
If you could learn to code with one simple internet search and having one book on your shelf, then you'd be right. Also, ha it occurred to you that you've been asking the wrong questions?
The only reason to ask programming questions is to figure out if the person was "fibbing" on their resume about their skills.
Kinda. That's the point of an audition. A substantial number of programmers can't write a simple program in a language of their choice or read existing code they're not already familiar with. I know there are companies that hoover up loads of mediocre people and they just kind of grind doing tiny amounts. And I'm pretty sure some people can only code by randomly permuting code in an existing codebase and seeing what happens.
Plus it shows absolutely nothing about their interpersonal skills, which are as important to be a valued member of a development team.
Gosh it's almost lie you can ask two interview questions or even 3! You don't need to ask a single question than answer every topic.