The correct option is D We go to the school cafeteria when we feel hungry.
The sentence here is a cause-and-effect type of sentence where one thing happens due to the other: 'Going to the school cafeteria' at the time when 'they feel hungry'. So, the most appropriate word is option D) When, which means 'at the same time.' Options A), B) and C) do not make logical sentences.