what the dickens?

What the dickens? Is a question asked as a cliched term which is similar to what the heck or what the hell and very commonly said when something has just occurred that is very surprising. It is usually followed by an expression of puzzlement and awe by something you have just seen or heard. It is not necessarily used for a surprising negative thing, because it is most commonly when someone is more puzzled or curious than angry about it.