Kanji are optional in the sentence-writing questions. For instance, even though I know how to write 頑張る and 負ける, I wrote がんばる and まける on the exam on Sunday, because it is just one less thing to worry about.
That being said, I study writing kanji by hand a bunch. If you’re interested in that, you can check out my Kanken topic.