By the 5th time you see the question, you're fuming so you shout, "YES! I ANGER EASILY!!!!"
Ahem... Sorry.
I worked at a place that was bought out and the new team immediately made everyone take a battery of these style tests. A few days later they did a mass firing based on the results. I survived long enough to find work elsewhere.
I assume that you're in USA as you don't say, what law prohibits it? Any insight on the rationale?
Presumably it is not illegal to require a particular educational level or particular certificate pass which are likely to be close proxies for an "IQ" test result?
While technically not always illegal, giving an IQ test is a minefield for HR and that's why almost everyone avoids it. It all boils down to whether it is required for the job or not, and whether it would discriminate against someone who could otherwise do the job but fail the test.