Examples where the preimage of compact sets under f is compact, where f is a continuous function on a metric space.
a) Closed interval
b) Open interval
c) Closed ball
d) Open ball