The correct response is:
Use long division, and if the remainder is zero, the expression is a factor.
This is a standard method for determining if one polynomial is a factor of another. If, after dividing the polynomial by the expression, the remainder is zero, then the expression is indeed a factor of the polynomial.