A motion is periodic if it repeats itself identically after a fixed interval of time, called its period T.
(a) Not periodic. The swimmer makes a single return trip. Even if the trips were repeated, nothing fixes the time taken for each trip, so the motion does not repeat after a definite interval. To-and-fro motion alone does not make a motion periodic.
(b) Periodic. When the magnet is turned away from the N-S direction, the Earth's magnetic field exerts a torque that turns it back. It overshoots and swings to and fro about the N-S direction, and each swing takes the same time. The motion is oscillatory, and every oscillatory motion is periodic.
(c) Periodic. A molecule rotating steadily about its centre of mass comes back to the same orientation after every rotation, and each rotation takes the same time. This motion is periodic but not oscillatory, because there is no to-and-fro motion about an equilibrium position.
(d) Not periodic. The arrow leaves the bow once and never returns to its starting position, so nothing repeats.
Hence only (b) and (c) represent periodic motion.