which example of dialogue is punctuated correctly?\n“be careful, because the floor is wet,” he warned.\n“be…

which example of dialogue is punctuated correctly?\n“be careful, because the floor is wet,” he warned.\n“be careful, because the floor is wet”, he warned.\n“be careful, because the floor is wet” he warned.\n“be careful, because the floor is wet.” he warned.
Answer
Brief Explanations:
In dialogue punctuation, a comma should be placed inside the closing quotation marks when the dialogue is followed by a reporting clause like "he warned". The full - stop also goes inside the closing quotation marks if the end of the dialogue is the end of the sentence fragment within the quotes.
Answer:
"Be careful, because the floor is wet," he warned.