This is from North Carolina State’s online writing lab
Question (from a film-subtitling company in Los Angeles): A friendly dispute has arisen at work: I contend that the phrase “Guess what” is a command and thus requires a period. My colleagues insist it is a question.
Answer: Who are these people? I didn’t think Californians ever insisted on anything. I thought they just “leaned weakly toward the possibility that . . .”
At any rate, you will be gratified (but not surprised) to hear that you are right, and they are wrong, wrong, wrong—or at least tilting in the wrong direction. “Guess what” is an imperative, which is conventionally punctuated with a period, not with a question mark.
This, of course, will not satisfy the insisters, who are likely to suspect that you have hired a grammatical ringer. To convince them of the error of their ways, you will have to toss them an analytical bone.
Here’s the rest of the story:
Imperative sentences in English are conventionally punctuated with a period, not with a question mark, but this, of course, begs the question whether this is an imperative sentence at all. Many seeming imperatives are actually simply colloquially short ened versions of interrogatives. Let’s compare two sentences that seem to be similar:
Know what(./?)
Guess what(./?)
The deep structure of “Know what” can be expanded to “Do you know what?” and “Do you know what?” is clearly a question. Furthermore, “Know what” could never logically be an imperative, since you can’t command someone to know something.
“Guess what,” of course, is different. You can clearly command someone to guess something, whether or not they choose to comply. And though “Guess what” could perhaps be expanded to “Can you guess what?” the inflectional pattern suggests that that’s no t what’s going on at all.
Let’s compare the inflectional patterns. “Know what” starts low and rises. This is what questions do. “Guess what” starts in the middle and stays there. This is what commands do.”