I think the basic idea - questioning people about things they ought to know, given who they claim to be - is a good one.
However, it only makes sense if the one doing the questioning is able to judge the quality of the answer - or, for that matter, determine whether your inability to answer satisfactorily is because you bluffed - or if you're just a bit outside your professional comfort zone.
(I would probably have to answer 'software engineer', as that is what my business card says - however, I am much more of a hardware/systems guy in practice, only our HR department is completely unable to change my title to something a bit more descriptive. If speaking to another engineer, I wouldn't have any problems convincing him of my bona fides - however, if a CBP officer just looks up question #13 in the 'SW engineer' quiz - I may be in trouble.