Which sentence uses punctuation correctly?

AMy friend jumped off the diving board and shouted "look out below!"
BMy friend jumped off the diving board and shouted, "look out below!"
CMy friend jumped off the diving board and shouted, "Look out below!"
DMy friend jumped off the diving board and shouted "Look out below!"