With crossing out bad answers, you can find that A, doesn’t make sense, is the opposite of the true outcome, C is also the opposite, D is likely, and E is definitely not true. So it must be D.
Twain uses irony and sarcasm to characterize the king and duke in such a way that communicates his belief that pretending to be something you are not (for the sake of appearances) is both ridiculous and embarrassing.