How is the underlined word used in the following sentence?
Juan was elected president of his class.

Juan is underlined.


A. Subject
B. Predicate nominative
C. Direct object
D. Verb