In a certain code, 'CAT' is coded as '312' and 'DOG' is coded as '415'. What is the code for 'GOD'?

Answer: A. 514
The code for 'GOD' can be derived from the code for 'DOG' by rearranging the letters, hence 'GOD' is coded as '514'.