Question: is what the heck a bad word?
Answer: Yes, it is a swear word. “Heck” is a slightly modified “Hell”. In some religious circles, it is considered inappropriate to say the word “Hell”. So, they say “Heck” instead.