If $f:\mathbb{R}\to\mathbb{R}^{+}$ and $g:\mathbb{R}^{+}\to\mathbb{R}$ are such that $g(f(x))=|\sin x|$ and $f(g(x))=(\sin\sqrt{x})^2$, then a possible choice for f and g is
- A
$f(x)=x^2,\ g(x)=\sin\sqrt{x}$
- B
$f(x)=\sin x,\ g(x)=|x|$
- C
$f(x)=\sin^2 x,\ g(x)=\sqrt{x}$
- D
$f(x)=x^2,\ g(x)=\sqrt{x}$