Here is one sentence: His salary was determined by his rank and seniority.
Here is another sentence: The entrance was guarded by ranks of policemen.
Q: Does the term rank mean the same thing in both these sentences?
Options are: (i). different meanings (ii). the same meaning
(i).