I don't see it in such a bad light; a correctly targeted quiz that effectively targets one unique concept, is asking you to use that concept, and for that you need to remember it. It is testing another dimension of how you learnt that concept. Although I agree it is not the most efficient way of learning to program, it sure seems like a good way of not forgetting corner cases of the language...