“He needn’t have beaten the child.” means:

The child needed to be beaten.
He needed to beat the child.
He didn’t beat the child
He beat the child.
Advanced Grammar Exercises
Fiverr 2021 English Level Tests
Elementary Grammar Exercises A1
Table of English Grammar Contents (All Levels)