There are a variety of lodging options offered by schools around the world. University residences of a rather high standard are the norm in Britain yet seldom available elsewhere. Student residences are available in some cities. Most are converted houses or hotels with a broad range of amenities.
Apartments are scarce and generally quite expensive.
Most schools also offer the option of tuition only whereby you get the lodging of your choice. If not, talk to your host directly and ask what's expected of you. Courtesy and common sense should be your guide. Always ask your host when you have a question. Food and meal times will be different.