No punishment, whatever form it takes, can be justified for simple academic failure.
What I found more shocking, however, was the boy who bit through his lip whilst being beaten – presumably in a futile effort to dull the pain.
The line between reasonable CP and abuse can be a bit blurred but some things fall very definitely in the abuse category. Despite what some might say, that boy was a victim of sadistic abuse!