Who, whom and whose are relative pronouns. Who and whom are used for persons. They introduce relative clauses postmodifying the head of a noun phrase, and they are identical in form with interrogative pronouns but function differently.
Who: nominative form.
"The student who failed the test was...