We establish strong and weak approximations for quadratic forms of weakly a
nd strongly dependent random variables and obtain necessary and sufficient
conditions for the weak convergence of weighted functions of quadratic form
s. The results are applied to get the asymptotic distributions of some test
s which can be used to detect possible changes in the long-memory parameter
.