Answer:
Your answer would be that the appositive phrase is punctuated correctly in sentence B.
Step-by-step explanation:
An appositive is a noun or noun phrase that renames another noun right beside it. In this case, the noun "Salvador Dali" renames the noun "painter". This is an essential appositive as it provides information which is considered relevant to complete the meaning of the sentence. It specifies to the reader the painter that the sentence is referring to. If it was dropped, the meaning of the sentence would be altered. That is why it should not be offset with commas from the rest of the sentence (C).