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

An occasion arranged to honor the president.

There was no occasion for complaint.

Options:
(I) different meanings.
(II) the same meaning.
(I)