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

He left school before the end of term.

He was sentenced to a term of six years in prison.

Options:
(A). different meanings.
(B). the same meaning.
(B).