Is the word in parentheses an adjective?

Alan met a (friendly) dog.

Question 7 options:

yes

no

Yes