As an adjective:
* "Which book did you choose?" (modifies the noun "book")
As a pronoun:
* "Which of these is your favorite?" (stands in for a noun, referring to a choice)
As an adjective:
* "Which book did you choose?" (modifies the noun "book")
As a pronoun:
* "Which of these is your favorite?" (stands in for a noun, referring to a choice)