Each jump covers one center of the square to the other. If you can imagine the scenario, a single jump would cover a length of the side of one whole square. So, if it took three jumps, the total distance would be
d = 3 * 5 cm
d = 15 cm
Therefore, the magnitude or distance is 15 cm. The displacement depends on the direction of motion.