The function of end punctuation is to indicate to the reader that an idea is complete and to point up the tone and flow of how the sentence should be read.
There are three basic ways to end a sentence:
|Pandas eat bamboo shoots and leaves.|
Question mark (?)
What kind of leaves do pandas eat?
Exclamation point (!)
Watch out! The panda eats, shoots, and leaves!