So, the question is which one of the following is true?
a) There exists a continuous function from $[-\pi/2,\pi/2]$ onto $(0,1)$
b) There exists a continuous function from $[-\pi/2,\pi/2]$ onto R
c)There exist a continuos function from $[0,\pi]\cup[2\pi,3\pi]$ onto $[0,1]$
d)There exist a continuos function from $[-\pi/2,\pi/2]$ onto $[0,1/3]\cup[2/3,1]$
I know that a) and b) are not true because continuous functions map closed intervals to closed intervals. However, I don't understand how to know which one of c) or d) is true. How do I tackle c) and d) Thanks in advance!!