Question: "head" used in the same way in the following two sentences?

200 head of cattle and 50 head of horses.

At five years of age this head of cattle is worth perhaps $40.
Answer: the same meaning
Question: "oblige" used in the same way in the following two sentences?

We had to oblige him.

The singer obliged with another song.
Answer: the same meaning
Question: "set" used in the same way in the following two sentences?

To set pear trees in an orchard.

Set these words in italics.
Answer: different meanings
Question: "shake" used in the same way in the following two sentences?

Shake one's head.

She shook her finger at the naughty students.
Answer:
the same meaning