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

My Russian vocabulary is very limited.

The vocabulary of any language is influenced by contacts with other cultures.

A: different meanings

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

The class of all sets is not a set.

There are two classes of detergents.

A: the same meaning

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

The boxer was a magnificent fighting machine.

The war machine.

A:
different meanings