Perhaps it's just an assessment of where you're all at. Was previous knowledge a pre-requisite for the course? If not then snagging a working example off someone on the net won't necessarily help you - it'll give the wrong impression that you already know how to code.

Maybe you should mention to your professor that you haven't got a clue, that's why you're on the course, and how does he expect you to complete an assignment when he hasn't given you any skills yet.