AP Computer Science is a popular class in my H.S. Yes it is probably 3/4 white or asian boys.
How much of it is also the perception many girls tend to have that computers/math are for boys or if they like those subjects, they are dorks/geeks? The social aspect is not just learning style but the perceptions among the girls, which drives their motivation to be in one of those fields or avoid those fields. I went to an all women's college, which meant all our CS and science students were women, and all our computer clusters run and staffed by the students - again, all women. Half of my sports team in college were science majors. It was odd for me to go from college where our science center was full of women to working in a corporate environment where there were only a handful of women in the technical groups.
Thanks for sharing notnaffnaf. Sadly a lot of this is due to perceptions. For the same reason I suspect that if we were to visit good high schools in Africa or Latin America offering honors Computer Science classes, we will find that they be full of African and Latin American children respectively, not white or Asian ones.