1) This is trivial and follows directly from the definition of a continuous function: f continuous <=> the preimage of any open set is open. As any set is open in a discrete topology, the claim follows.
2) Think about the hint a bit more!
3) Follows as directly from the definitions as 1)
4) Again it is just reading the definition.