You need to find if there exists an integer k such that k2=num. This is a quadratic equation.
One approach: compute num and check if it's an integer. But floating point can be imprecise.
Better approach: use binary search to find k in the range [1,num]. If k2=num exactly, return true.