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

He had to appear in court last month.

She appeared on several charges of theft.

A: the same meaning

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

Plug the wall.

He attempted to plug the leaks with some caulk.

A: different meanings

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

A leak in a gas pipe.

He had to clean up the leak.

A:
the same meaning