Simply asking the same set of questions to all candidates won't fix it, if the questions themselves have the effect of weeding out women.
The questions I asked were representative of things we actually had to do on the job, for instance: "write code to spider a web site." Does that unfairly weed out woman?