Answer:
D. both a and b
Step-by-step explanation:
If you hold the north poles of two magnets close together, the magnetic force will push the magnets apart. The same is true if you hold the south poles close together. If you hold the north pole of one magnet close to the south pole of another magnet, the magnetic force will pull the magnets together.