The correct option is D On the X chromosome
Sex-linked traits are the one which are inherited with sex chromosomes, thus sex-linked characters cannot be present on autosomes which make option B incorrect. The Y chromosome is very small and carries only a few functional genes on it. This makes options A and C incorrect. Thus, X-chromosome must carry the gene for eye colour in the fruit fly. This makes option D correct.