As far as I can tell it is bounded, as it's within $[0, \sqrt 2]$, and is closed as there cannot be an open neighbourhood about 0, and as it's closed and bounded it is therefore compact. However I'm not sure if closed and bounded imply compact in this situation, as I've only ever used this property in $\mathbb R$. Am I wrong?
Edit: the question specifies this is $\mathbb Q$ with the Euclidean metric, so no need to allow for different ones.