The correct option is D both (A) and (B)
Answer is D.
In copper purification process, the pure copper plate is to be coated with copper from the impure copper plate, so the pure copper plate is the cathode. Therefore, the negative terminal of the battery should be connected to the pure copper plate and the anode is the impure plate of copper, from which the copper has to be coated on the pure copper plate.
Hence, The electrode Z is impure copper and it is the anode.