It closes the game. Immediately, and without asking.
Trolls have been telling new players otherwise for as long as the game has existed — that it grants gold, mounts, pets, levels, game time, free gear in the mail or an unusual achievement. None of that is true. Alt+F4 is the standard Windows shortcut for closing the active window, and World of Warcraft is the active window.
If someone offers it as a reward, they're setting you up. The only thing waiting on the other side is your desktop.