Right, you would include the gender question in your script in the same fashion as you would other questions. The survey features are probably the best way to do this - see the demographics suryey sample on our web site for an example - it includes this question. You can also do this using a <trail> element.
Regards,
Sean