When we heat Zinc Oxide with Magnesium it gives Magnesium Oxide and Zinc this happened because the activity/reactivity of Zinc is low as compared to Magnesium.
Hence, the reaction is possible.
Part 2 :
Whereas when we heat Zinc Oxide with Copper, no reaction will take place because the activity/reactivity of Copper is low as compared to Zinc.