"In 1973, he attended college prep and engineering classes at Lawrence Technological University and graduated from Detroit Country Day School, a private college preparatory school in Beverly Hills, Michigan, with a perfect score of 800 on the mathematical section of the SAT... In 1977, he graduated magna cum laude from Harvard University with an A.B. in applied mathematics and economics... He scored highly in the prestigious William Lowell Putnam Mathematical Competition, an exam sponsored by the Mathematical Association of America, scoring higher than Bill Gates."
I'm not sure if he coded, but Ballmer definitely has a mathematical/technical background. I'm not sure technical background is necessarily an indicator of success as an executive.