The correct response is:
by noticing when they know something the character does not.
Dramatic irony occurs when the audience or reader has information that a character in the story does not, leading to a contrast between the character's understanding and the reality known to the audience.