Let $f:X\to Y$ be a continuous map between metric spaces. Then $f(X)$ is a complete subset of $Y$ if
A. the space $X$ is compact
B. the space $Y$ is compact
C. the space $X$ is complete
D. the space $Y$ is complete
I am unable to arrive at a conclusion.