$\sin^2(x)$ has period $\pi$ but it seems to me $\sqrt{\sin x}$ is not periodic since inside square root has to be positive and when it is negative, it is not defined.
Does it creates problem for periodicity? Can we say square root of the periodic function need to be periodic? Thanks for your help.
This is graph of the $\sqrt{\sin x}$ above.


The function $\sqrt{\sin x}$ is periodic. If you want (but don't do it in public) think of "undefined" as a real number. Then if $\sin x$ is negative, you have $$\sqrt{\sin x} = \mbox{ undefined } =\sqrt{\sin(x+2\pi)}.$$
Or you can extend to the complex numbers and you'll have periodicity everywhere.