Let $f:\mathbb{R}\to\mathbb{R}$ be a continuous function.
$A=\{(x,y)\in\ \mathbb{R}^2:x^2+y^5=1$}
$B=\{(x,x\sin\frac{1}{x})\in\ \mathbb{R}^2:0<x\leq1\}\cup\{(0,0)\}$
$C=\{x\in\mathbb{R}:f(x)=0\}$
(1) Which of the above set are necessarily open?
(2) Which of the above set are necessarily closed?
(3) Which of the above set are necessarily compact?
(4) Which of the above set are necessarily connected?
I think that A is closed, compact and connected. Am I right?
And I have no idea for B.
For C,
If $f(x)=\sin x$,
$C=\{n\pi:\text{ for all } \ n\in\mathbb{Z}\}$ , so it is not connected and compact.
How to check it is open or closed?