The ones I truly hated were presented in some weird online not-a-real-text-editor format (unrealistic environment), and were also TIMED (unforgivable).
I mean, I’m not sure what you’re assessing if you throw 4 different problems at me to complete in an hour using an editor I’ve never seen before (that may have bugs of its own).
“Homework assignments” seem OK to me though; feel free to give me a few days in my environment of choice to produce quality work. Anything less is not a good benchmark.