Hi @ali.raza16922597,
and welcome on the ODK community forum. When you get a chance please take some time to introduce yourself here
What you want to achieve is quite simple and need the use of choice_filter expression.
Add a criteria column (ie gender) to your choices sheet.
For the ten first options fill this column with "male" and "female" to the others option.
In your survey sheet, for your Q2 (select_one or select_mutiple) you'll need to specify a choice_filter :
gender=${Q1}