Consider the function $f(x) = \begin{cases}x^a\sin({1\over x^b})&\space x \ne 0 \\ 0& \space x = 0\end{cases}$
As far as I can tell, the function is continuous everywhere so long as a and b are positive integers, but I'm not sure if this is correct or not. The only place where I see it potentially not being continuous is at 0. However, using squeeze theorem, the $\lim_{x \to 0} f(x) = \lim_{x \to 0} x^a\sin({1\over x^b}) = 0$ for both odd and even a's and b's.
So am I correct?
Edit: I have made my previous answer a little bit well-ordered.
Your answer is partially true. We have many cases.
1) $a=0$. You can easily check that only for $b<0$ we have continuity.
2) $a>0$. As you said the squeeze theorem gives the answer: continuous.
3) $a<0$.
Make the final conclusion yourself. I hope this helps you. Let me know if it is not clear yet.