However, this reasoning can sound like plausible deniability. How can you determine whether the real intent is to assess your IQ indirectly without explicitly administering an IQ test?
And why does the US permit this practice to continue if IQ tests are banned?
P.S. While IQ tests are not strictly banned in the US, using them opens up a company to potential lawsuits.
Then the interviews would really be about cultural fit and project interest, not trying to prove if the candidate _actually_ knows C, JavaScript, and Fortran77 well enough.
\end{slightly-off-topic}
If you're hiring rocket scientists, I'd bet you could ask 'em some tortuously difficult questions about rocket science. Or brain surgeons about brain surgery, or nuclear physicists about nuclear physics, or ...
The validity of IQ tests is debated and their history is checkered: they've been used by eugenicists and racists to support their views and statistically minorities under perform on them.
It's not hard to imagine someone purposefully writing an "IQ test" that's racially biased by focusing on things that wealthy white men know. An infamous example from the SAT in the 70's (and allegedly used later as well) that favors those familiar with rowing (aka: "crew"), a largely Ivy League sport:
RUNNER: MARATHON A) envoy: embassy B) martyr: massacre C) oarsman: regatta D) horse: stable
So it's fine if hard tech interviews are actually trying to assess your IQ, but if they're racially biased it's a problem.