Use the quiz module.
It is not possible to grade a normal assignment automatically because a computer cannot read, comprehend and judge standard free text. However a very smart person called Gordon Bateson has created a version of the quiz essay question type that goes some way towards this
Some notes from the readme about how it grades
* the number of words in the response * the number of characters in the response * the presence of one or more target phrases in the response The automatic grade can be overridden by the teacher later.
Hi Inamullah Khan,
I am wondering, by "check assignment automatically" did you actually mean the actual Moodle assignment activity? Or did you mean is there any way to set up some sort of normal classroom activity in Moodle that can be automatically graded?