Answer:
The student used cluster sampling.
Explanation:
The student chose 5 random classrooms and surveyed every student in those classrooms.
This is a form of cluster sampling.
Cluster sampling is a sampling method where the population is divided into different groups by the researcher. These groups are called clusters.
Then out of these clusters, simple random samples are selected and the required survey is conducted from the sampled clusters.