You debit the materials account with the materials purchased.
You credit the materials account and debit the process account with the material used in production.
However, you cannot possibly be asked to actually prepare a materials control account in the exam (and the chances of even being expected to know the entries is extremely unlikely – it is not that sort of exam).