grammar question: ka? or ga? And what is the grammar?


[![enter image description
here](https://i.stack.imgur.com/N1NAi.png)](https://i.stack.imgur.com/N1NAi.png)

i am thinking of whether the grammar in the question is. Ive never seen any
problems like this. What is the case? And how should I answer this question?

