A melon of weight 12 N (near the surface of Earth) is moved through a displacement of magnitude 1.00 m.

What happens to the gravitational potential energy (of the melon/Earth system) due to this displacement.

That depends upon the direction of motion. If the melon does not go up or down, and moves only horizontally, there is no change in the gravitational P.E. .