As mentioned in the answer of lighthouse keeper, there is no typical protocol for such interviews. But I'd like to add that the questions in interviews not only depend on the requirements of a position, but also the past experiences of the PI.
Doing a PhD in CS typically means to come up with some new ideas to solve problems of interest to the academic community and to then validate that these ideas are good. In fields with an applied component, this often means to implement the ideas in one form or the other. In program analysis, this often means to implement the ideas in research prototype program analysis tools.
This means that a successful PhD student should be able to
- come up with new ideas to a field of research (normally the one in which the PI works)
- being able to implement them.
It is good for both student and PI if only applicants are accepted for which it is reasonably certain that they can do both. This is because doing a PhD in an acceptable time frame is tough. Even skilled candidates pretty much never finish their PhDs in three years (which is the norm on paper in Germany but not in practice). If the work in the "coming up with ideas" or "implementation" categories takes longer because of a lack of skills acquired in the past, then this can easily mean that this part takes two-fold to ten-fold as much time. And then there is no way to finish the PhD on time and depending on where the funding for the position comes from, the PI may also run into trouble with the funding source (they want to see results!).
While the ten-fold figure is surely drastic, I believe it to be realistic for the implementation part, though. Programming is hard initially and then later one becomes more proficient. Implementing a scientific idea means that you implement something whose implications you haven't fully understood. You want to keep your mind open and constantly think during every step of the implementation whether what you are doing is really what solves the problem. Often, during the implementation, you found out that you forgot an aspect during the conceptualization of the new idea. But you only find that out when you are able to focus on what you are doing. If you lack programming skills, then your mind will be busy with fighting the programming language and basic algorithms concepts while you are at the same time doing something quite difficult. This is like learning to drive during a race.
Now obviously you acquire new skills during your PhD, which will help you speed up your work over time. But the basic programming and problem solving skills are normally learned quite early on during a CS course of study (normally in the B.Sc.), and catching on later will take a lot of time - time that makes you unproductive in the first couple of years, as there is also a lot of research that other people did in the field to catch up with. And this is incompatible with an academic system in which you are expected to work on research from day 1 during your PhD studies (as it is the case in Germany). There are no courses (except in some structured programs)!
Note that it is possible that the PI had a student in the past who had to drop out because of implementation work not going well. Then it's not surprising that such questions are included in an interview.