Hi goyalsau,
My pleasure to be here!
(1) Sufficient
Please note that q^2 = qr is equivalent to q^2 - qr = 0 that is equivalent to q(q-r) = 0.
When 2 real numbers has product zero, at least one of them must be zero, therefore:
(a) q = 0 or
(b) q-r = 0, that is, q = r.
From the fact that (b) was not allowed by the question stem, we have necessarily (a), that is what we were asked, by the way.
(2) Not Sufficient
> Take r = 5 and q = 0 to answer in the affirmative ;
> Take r = 5 and q = 1 to answer in the negative.
We are done.
Regards,
Fábio.
Important: DO NOT CANCEL common factors, put them into "evidence" (then you do not fall into the trap of sttm (1)!!