Multi-choice problem: does word "snap" have the same meaning in the following two sentences?

To snap a whip.

The pipe snapped.

OPT:
[A]. different meanings.
[B]. the same meaning.
[A].