How are the Senate leaders chosen?

How are the Senate leaders chosen?

a. They are appointed by the president of the Senate.
b. They are elected within each party.
c. They are elected by the whole Senate.
d. They are appointed by the president pro tempore.