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?