What is the law for sitting someone else in your place to write an exam for you?
الجواب حامدا و مصلیا
Having someone else sit in one’s place to write an exam is an act of deceit and such actions has been warned against in Ahadith, hence one should avoid doing such.
And Allah knows best.