Here, ‘The cake was smashed into the floor’ is the correct answer. In a passive voice sentence, the receiver ‘the cake’ is placed in the subject position, followed by the verb 'smashed into the floor’ and the doer of the action which can be known and unknown. Since it follows the order of the receiver, followed by the verb and then the unknown doer it is in passive voice.