For which intervals $[a,b]$ in $\mathbb{R}$ is the intersection $[a,b]\cap Q$ a clopen subset of the metric space $\mathbb{Q}$?
My answer is : $[a,b]\cap\mathbb{Q}$ is a clopen subset iff $a,b \in (\mathbb{R}\backslash \mathbb{Q})$, since if $a,b \in \mathbb{Q}$ then $[a,b]\cap \mathbb{Q}$ won't be open.
I got this wrong on a p set. Can someone correct what I have done wrong?