I hate dobby so much it would have been so cool if Harry had just killed them the first time they met. Hermione is almost as bad. I have nothing against being smart and knowing a lot, that's a good thing, but you don't have to show off and you don't have to memorize the exact wording of books to use as answers. Just learn the concepts well enough that you can say it in your own words.