Need help on another question.

Which sentence is written correctly?
A) “The hissing cockroach,” my teacher said. Comes from Madagascar.
B) “The hissing cockroach,” my teacher said, “comes from Madagascar.”
C) “The hissing cockroach, my teacher said, comes from Madagascar.”
D) “The hissing cockroach,” my teacher said,” Comes from Madagascar.
Is it B? Thanks.

Yes, you're right.