I never ask that kind of question because the candidate's ability to solve silly FizzBuzz-style problems tells nothing about their fitness to the jobs I hire for.
Knowing that they can't is equally useless… and for the same reasons.
It is totally irrelevant.
It doesn't have to be asked during the full technical interview stage.