Is the use of going to correct or should we say "the exam will start in a while"?
There is no significant difference between any of these forms in this situation:
The exam starts/is starting/will start/is going to start/will be starting...soon/shortly/in a little while.
'In a while' is not commonly used for 'in a short period of time'; we are more likely to say 'in a little while'.