I don't think I completely disagree with your overall point, but:
> Nobody fails CS101 because they can't remember the syntax of function definition
I knew a couple people who cited essentially this reason as why they dropped their CS major: they found it really difficult to write anything that even compiled and couldn't deal with syntax errors like missing semicolons and whatnot.