Indeed - what the dickens was the matter with her? - she didn't want to be sensible.
The first is: How the dickens are you getting them in?
What the dickens, so to speak, was he to do?
1what/who/where the dickens ...? used when asking a question to show that you are very surprised or angry: What the dickens is the matter with her?2as pretty/smart etc as the dickens American English very pretty, clever etc: Isn’t she as cute as the dickens!