Here are some examples:
* Surprise: "What the heck is that noise?!"
* Annoyance: "What the heck, I just cleaned that up!"
* Confusion: "What the heck are you talking about?"
It's important to note that while "what the heck" is generally considered less offensive than "what the hell," it's still considered informal and should be used appropriately.