Questions & Answers about В университетском буфете можно купить кефир и йогурт.
Because в means in / at here, and when Russian uses в to talk about location, the noun normally goes into the prepositional case.
So:
- буфет = buffet, snack bar, cafeteria counter
- в буфете = in the buffet / at the buffet
The adjective has to match the noun:
- университетский буфет = university buffet
- в университетском буфете = in the university buffet
So both words change because they are part of the same prepositional phrase.
It is prepositional singular.
The base form is:
- университетский буфет
After в meaning location, it becomes:
- в университетском буфете
Why the endings?
- masculine/neuter adjective in the prepositional singular often ends in -ом / -ем
- masculine noun буфет becomes буфете
So:
- университетский → университетском
- буфет → буфете
This is just normal adjective-noun agreement in the prepositional case.