<!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}-->
Here, 'The pudding was eaten by Alex' is in passive voice. In a passive voice sentence, the receiver 'the pudding' is placed in the subject position, followed by the verb 'was eaten', and the doer 'Alex'.