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

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