originally from the game of whiffle ball, specifically the sound the hollow plastic bat makes when one swings hard and misses the ball.
Also, it means to fail badly at a very simple task. This is a big put down.

"I can't believe you whiffed on that pop quiz. It was just one question. I thought everyone knew who Nixon was."