Question :
Let $A$ be a subset of $\mathbb R$. Which of the following properties implies that $A$ is compact $?$
Every continous function $f :A \rightarrow \mathbb R $ is bounded.
Every sequence $ \{ x_n \}$ in $A$ has a convergent subsequence converging to a point in $A$.
There exist a continuous function from $A$ onto $[0,1]$.
There is no one-one and continuous function from $A$ onto $(0,1) $
In $(2)$ option we have result if $ (X , d)$, is a metric space, then $X$ is compact iff every sequence has a convergent subsequence. I have no idea in other option. Please give me hint how to verify other option. Thank you