Q: Does "respect" have the same meaning in the following two sentences?

He went to law school out of respect for his father's wishes.

He inspires respect.

A: different meanings

Q: Does "beat" have the same meaning in the following two sentences?

Beat one's foot rhythmically.

I beat the traffic.

A: different meanings

Q: Does "forefront" have the same meaning in the following two sentences?

The idea of motion was always to the forefront of his mind and central to his philosophy.

That laboratory researches topics at the forefront of technology.

A:
the same meaning