Formal:
* Sí, necesito un diccionario para la clase de español. (Yes, I need a dictionary for Spanish class.)
* Sí, me sería muy útil tener un diccionario. (Yes, it would be very useful for me to have a dictionary.)
Informal:
* Sí, necesito un diccionario. (Yes, I need a dictionary.)
* Sí, sería bueno tener uno. (Yes, it would be good to have one.)
If you don't need a dictionary:
* No, no lo necesito. (No, I don't need one.)
* No, tengo mi propio diccionario. (No, I have my own dictionary.)
* No, estoy bien sin uno. (No, I'm fine without one.)
The best response will depend on your relationship with the person asking the question and the context of the conversation.