Which sentence is punctuated correctly?
A.
There were only three questions left when the teacher said "Okay, pencils down."
B.
There were only three questions left when the teacher said, "Okay, pencils down."
C.
There were only three questions left when the teacher said, "Okay pencils down".
D.
There were only three questions left when the teacher said "Okay pencils down".