There is an increasing (and generally good) trend for potential employers to ask candidates to sit some sort of technical test before even being invited to interview.
I appreciate that it is going to be more cost-effective that even a phone call to screen you but there seem to be two types of test out there, in the wild.
The first type is the genuinely practical, e.g. Practical programming test in interview, where you're sat in front of a 'real' machine and asked to code away. You'll be given a decent environment, have a web browser (for Google/MSDN/Stack Overflow/etc.) and a spec/question to answer as well you can within a time limit.
Then there's the more formulaic, answering, almost trivia quiz-like, questions. You're in front of an application that asks you specific questions, possibly with multiple choice answers. They'll dress this up as wanting you to be able to answer from first principles, but realistically, it's just a cheaper way than having a hiring manager call you on the phone.
As a candidate for interview, should I be wary of any company asking me to do a technical test that isn't a realistic simulation of a working environment? Or should I just deal with it, ace the easy test questions, accept the fact that I need to prove (again) that I know the really basic simple stuff off pat (or have at least read the first couple of chapters of any primer for the language I'm being tested on)? It's their job, I need to jump through their hoops in order to work there.
If a company can't trust me to know the basics, should I want to work there?
Update: thanks for the comments. In my case it's probably because I'm a gamekeeper turned poacher. I've been a hirer and interviewer and the muppets who blatantly lied did annoy me. (Actually that's being harsh on muppets, I love Animal and Rowlf the dog.) I'm just fed up answering the same textbook questions about mainly arcane trivia within the language again and again and again.
Maybe that's the answer - this idiot filter is almost certainly what the recruitment agencies should do, but generally they're slave traders who don't know what or how developers do what they do, just in it for the commission.