Arithmetic properties of quadratic exponential polynomials