You can use the bathroom before the exam starts or while it is still in progress. But if you leave in the middle of the exam, you might miss one question ( without even attempting). And since even one mark can alter the outcome of your seat allocation, this may impact your firm rating and admission.