Which question is idiomatic if we talk about animals? If both versions are correct, could you explain why "a" can be omitted. Male & female are countable nouns in the questions (not adjectives), right?
Is it male or female?
Is it a male or female?