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

Answer: A. 312
The code for 'RAT' is the same as 'CAT', which is '312'.