What creates irony in a work of literature?

Athe puns, wordplay, and other humorous devices
Bthe contradiction between appearance and reality
Cthe skill of the writer
Dthe characters’ outrageous behavior