The aim of this study was to examine executive function (EF) skills in girls with fragile X or Turner syndrome, using the Contingency Naming Test (CNT). The CNT is a Stroop-like task involving a 1- or 2-attribute contingency rule. We predicted that girls with fragile X would make errors reflecting poor cognitive flexibility and working memory limitations. We predicted that girls with Turner syndrome would have sufficient cognitive flexibility to perform the CNT accurately, but would have difficulty with verbal inhibition and would thus make more self-corrections than girls in a comparison group. The hypotheses were partially supported: relative to their Full Scale IQ-matched comparison group, girls with fragile X or Turner syndrome were slower on the warm-up naming task; girls with fragile X made more errors on the 1-attribute task, and girls with Turner syndrome were less efficient on both the 1- and 2-attribute tasks, without making more self-corrections. These results support previous findings of executive dysfunction associated with fragile X or Turner syndrome. The results suggest that both low IQ and fragile X status contribute to working memory limitations in girls with fragile X and that EF inefficiency in girls with Turner syndrome is due to both working memory limitations and slower response times.