Yes, you can change the programming language to answer during exams. Please take the following steps to do so.
Steps to change programming language to answer
Go to the coding page
Press the gear icon at the top-right corner of the page
Click “Switch Language”
Select the programming language you would like to change to from the drop-down list (the list of supported programming languages is here)
When you change the language, the coding section will be initialized with the new languages.
You cannot undo the operation, so we recommend you to change the language before you start coding.