I regret mentioning homework. I felt uncomfortable as I wrote it, now I know why!
I propose, rather than getting entangled in a fundamental question, and implicitly telling the OP that homework is useless, find out first what the OP wants and then tell him how to handle that in Moodle, if at all possible.
Let him answer my question first: 'When you talk of "on-line learning" you mean the on-line, i.e. at a networked computer device, component of a course which is also taught face-to-face. The question is whether it is a repetition of what has been done in the classroom or is it an extension, i.e. exercises which were not conducted in the classroom but an integral part of the course augmenting it.' Then we know.