Pencil for diagrams, black or blue pen for writing.
Humans are marking the exam, they wont deliberately give you a hard time just because you used a gel pen or a green pen, so long it's readable, everything else will be fine.
But pencil tends to smudge or fade easily, apart from diagrams...