Question: "connect" used in the same way in the following two sentences?

Can you connect the two loudspeakers?

These computers connected well together.

OPTIONS:
- different meanings
- the same meaning
Answer: the same meaning
Question: "keep" used in the same way in the following two sentences?

I keep a small stock of painkillers for emergencies.

There's little to earn and many to keep.

OPTIONS:
- different meanings
- the same meaning
Answer: different meanings
Question: "resign" used in the same way in the following two sentences?

He had no choice but to resign the game and let his opponent become the champion.

After fighting for so long, she finally resigned to her death.

OPTIONS:
- different meanings
- the same meaning
Answer: the same meaning
Question: "head" used in the same way in the following two sentences?

A head of cauliflower.

He is two heads taller than his little sister.

OPTIONS:
- different meanings
- the same meaning
Answer:
different meanings