If you live in Denmark (and probably a number of other European countries, though I haven't checked), you can sue them for this question. In any case, you can get away with telling them "No", even if you're pregnant at the time. They are NOT allowed to ask.