The Sample Programs for Incoming CS Freshmen has moved here:
http://www.eecs.berkeley.edu/csugrad/freshman-samples.pdf