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

They were arrayed in line of battle.

He drew a line on the chart.

A: different meanings

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

They broke faith with their investors.

Keep the faith.

A: the same meaning

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

The ocean was finally at rest.

He threw away the rest.

A:
different meanings