Let $A \subset R$ and $f:A\to R$ be given by $f(x) = x^2$. Then $f$ is uniformly continuous if
- $A$ is bounded subset of $R$.
- $A$ is dense subset of $R$.
- $A$ is unbounded and connected subset of $R$.
- $A$ is unbounded and open subset of $R$.
I think that some information is missing from this question.
Suppose $A =\{ 1,2,3\}$ then one can not speak of uniform continuity on $A$. This is because limit and continuity at a point $x$ is always defined on a neighborhood of that point. So (1) fails.
Take $A = R$ then (2), (3) and (4) fail.
Note that the restriction of a uniformly continuous function is uniformly continuous.
Assuming that $A$ is bounded, then there exists $M>0$ such that $A\subseteq [-M,M]$. Notice that $g:[-M,M]\to \mathbb{R}$ given by $g(x):=x^2$ is continuous on a compact subset and, in turn, is uniformly continuous. Notice that $g|_A=f$ and hence, $f$ is a uniformly continuous function.
So, (1) holds. I agree that (2), (3), and (4) all fail since, like you mentioned, letting $A=\mathbb{R}$ gives a counterexample.