The word "barked" is a verb because it describes an action performed by the subject (dog). A verb is a word that shows an action, occurrence, or state of being. "Dog" is a noun, "at" is a preposition, and "stranger" is a noun representing a person. Identifying verbs helps in understanding sentence meaning and structure.