Ponciana,
Great questions! Let's start with the last question first!
"male has the pins and female has the holes?" You're correct on the gender, regardless of whether we're talking about the connectors on cable ends or the physical port on the devices. Male ports or connectors have pins sticking out; the female connectors or ports do not.
If you're trying to connect an external modem to your PC, you'll have choices:
It could be you'll choose a 9pin(M) to 25 (M) cable
It could be you'll choose a 9pin(F) to 25(F) cable
It could be you'll choose a 9pin(M) to 25(F) cable
It could be you'll choose a 9pin(F) to 25(M) cable
The only way you'll know is if you know the number of pinouts on the devices you're connecting and the gender. In your first question, you correct. But remember the key to exam is know what cable you could use. Commonly, cables are usually single gender and those with mixed genders are not as common.
If you're connecting a computer to printer but you notice the printer doesn't have a USB B connector. you may need what cable to make the connection possible?
In this instance you'll need the ?
It could be you'll choose a Centronics 36pin(M) to 25 (M) cable
It could be you'll choose a Centronics 36pin(M) to 25(F) cable
It could be you'll choose a Centronics 36pin(F) to 25(F) cable
It could be you'll choose a Centronics 36pin(F) to 25(M) cable
In your question, you'd be correct to choose 1.
Cordially,
Ronnie Wong
Host, ITProTV