Answer:
While playing my electric guitar, the amplifier went dead
Explanation:
The sentence that contains a dangling modifier is option B because
A dangling modifier is a word that modifies a word that is not clearly stated in the sentence. It usually does not have a subject and is most times a participle.
From the sentence, "While playing my electric guitar, the amplifier went dead", it does not clearly state what it is modifying, hence one can erroneously believe that the amplifier was playing the guitar which is irrational.
The sentence can be properly revised and rewritten so the word that is modified is clearly stated, ""While I was playing my electric guitar, the amplifier went dead".