Which of the following is a function of the executive branch?

A. writing legislation
B. administering the law
C. challenging legislation in court
D. repealing the law

B. administering the law