Answer:
B.
There were only three questions left when the teacher said, "Okay, pencils down."
Step-by-step explanation:
The correct answer should have quotation marks around what the teacher said. To introduce the quote, a comma should be before the opening quotation mark. A comma also belongs after the introductory word inside of the quote ("Okay"). A period that ends the sentence should always go inside of the quotation marks.