Mood in a story is created by
B. the word choice.
The title and the ending, while they might display/have the mood of the story, usually don't give the reader a full understanding of the mood trying to be displayed.
The length of the story typically is unrelated to the mood.