This looks suspiciously like a class assignment. If you had devised this structure yourself, you should know the answer because you would have built the tables yourself. Anyone who can build that complex a layout would be experienced enough to build the right kind of form.
Just to not blow you off completely, though, it is obvious you need a form that would let you select a particular exam, a subject, and a specific student. If you have those items selected, then one more text box would be needed for the grade itself.