IN CLASS! First of all brainly is to help you answer questions not cheat on them. Please do not do this to cheat. (Although this question that your teacher asked has no use to anyone getting a job) ;)
In dramatic structure, I think dialogue is used to appeal to the reader by making he/she feel like they are actually there and to just bring it to life. Hope that helps.