Most employers and recruiters are well aware of the obvious no-nos when asking questions of potential recruits and would be offended at the suggestion that discrimination could play any part in their decision making. Overt discrimination, such as not hiring someone because of their gender, has become a lot less common over recent years.
More information: http://theundercoverrecruiter.com/unintended-discrimination/