How is a genetic trait determined by the genetic code within a DNA molecule?
A DNA molecule has 4 dissimilar bases, either CGTA. Any specific combination of these things forms a dissimilar protein (a triplet of 3 base pairs codes for an amino acid and a chain of amino acids is a protein) which is expressed. This protein permits a genetic trait to be expressed. An example could be a protein that adds color to your hair.