I've got a CS degree. Had to retake 3 classes overall. One was a freshman CS class that I got a C- in (and anything below a C you had to retake). I got an F in a math class, but it was one required for my Math double major, not strictly CS. The third class was a Humanities class I got a D in freshman year, but I was able to drop it from my record and retake it. My overall GPA was around 3.1, 3.4 in CS.
Never got my Masters. I started to just after I graduated while I was working, but decided at the time it was too soon to be taking classes again, and never got back to persuing it. At this point with over 10 years experience a Masters degree would be moot.