Financial gearing is best measured using the market values (debt equity ratio is one way of measuring gearing).
The examiner usually specifies which measure of gearing he wants (debt to equity, or debt to debt + equity) and also whether he wants you to use market values or book values (most often in the exam it is book values).