Answer
See below.
Work Step by Step
The north pole of the bar magnet induces south poles on the closer side of the nail or paper clip. In the same way, the south pole induces north poles in the nail or paper clip. This causes the attraction.
However, a wooden pencil does not have magnetic domains that would be affected by the permanent magnet.