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

Answer: B. 314
By analyzing the codes, 'G' corresponds to '4', 'A' to '1', and 'T' to '3'. Therefore, 'GAT' is coded as '413', which matches option b.