We don't answer homework questions, so I present clues
The question is probably about reverse resolution (ip -> hostname). You should test it, but I think it'll resolve in first one found.
Second question: there's something more. Imagine you have 100 machines, every has its own /etc/hosts. How would you keep them up to date?