Nodding is a universally understood gesture for "yes" or agreement. It's an easy way to communicate when speaking is difficult. It's a gesture frequently used in class or during meetings. It's also used to show that you're listening attentively to the other person.