The word that fits here is residence. University halls of residence are buildings where students live during their studies.
Answer: residence