HINT: For any $x\in\Bbb R$ and $\epsilon>0$, the open ball of radius $\epsilon$ centred at $x$ is
$$\begin{align*}
B(x,\epsilon)&=\{y\in\Bbb R:d(x,y)<\epsilon\}\\
&=\big\{y\in\Bbb R:y=x\text{ or }\max\{|x|,|y|\}<\epsilon\big\}\;.
\end{align*}$$
Now $\max\{|x|,|y|\}\ge|x|$, so if $x\ne 0$, and $\epsilon\le|x|$, then $\max\{|x|,|y|\}\ge|x|\ge\epsilon$ for any $y\ne x$, and therefor $B(x,\epsilon)=\{x\}$. In other words, every non-zero real number is an isolated point in this space. To show that $\Bbb Q$ is closed, just use the fact that $0$ is rational.
To show that $\Bbb Q$ is not open, determine exactly what $B(0,\epsilon)$ looks like for $\epsilon>0$.