Individual differences in cognitive abilities in children and adolescents are partly reflected in variations in their DNA sequence, according to a new study.