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

Start at the beginning and go on until you come to the end.

The so-called glorious experiment came to an inglorious end.

Possible answers:
a). different meanings;
b). the same meaning;
a).