Proposition: If $\lim_{n\rightarrow\infty}a_n = L$ and the function $f$ is continuous at $L$, then
$$\lim_{n\rightarrow\infty}f(a_n) = f(L)$$
Proof: Since $\lim_{n\rightarrow\infty}a_n = L$,we know:
$$\forall\eta \gt 0,~\exists N\gt0 ~~\text{such that }~~n\gt N, ~~\left|a_n - L\right|\lt\ \eta \tag{1}$$
Also,by the definition of continuity, we have:
$$\forall\varepsilon \gt 0,~\exists \delta\gt0 ~~\text{such that }~~0\lt \left|x-L\right|\lt \delta, ~~\left|f(x) - f(L)\right|\lt\varepsilon\tag{2}$$
Let $\eta = \delta$, it guarantee that for any $\delta \gt 0$,we can always find an $N$, when $n\gt N,0\lt|a_n - L|<\delta$. Hence:
$$\forall\varepsilon\gt0, \exists N\gt0,\text{when}~~n\gt N,~0\lt|a_n - L|<\delta, ~~\text{such that},~~ |f(a_n) - f(L)| \lt \varepsilon\tag{3}$$
By $(3)$, we conclude $\lim_{n\rightarrow\infty}f(a_n) = f(L)$. Proved.
For you questions:
Let $f(x) = \sqrt{x}$, it is easy to check that $\sqrt{x}$ is continuous at $a\ge 0$, hence apply the proposition above. we have
$$\lim_{n\rightarrow\infty}f(a_n) = \lim_{n\rightarrow\infty}\sqrt{a_n}=f(L) = f(a) = \sqrt{a}$$
Note that $-x \le x\sin\frac{1}{x} \le x$ and $\lim_{n\rightarrow\infty}-x_n = \lim_{n\rightarrow\infty}x_n = 0$.