Which of the following statements is a function of political parties?

Appointing diplomatic officials

Electing Supreme Court justices

Nominating qualified candidates

Protecting the president