In a certain code, 'DOG' is written as '5147'. How is 'CAT' written in that code?

Answer: A. 3120
If D=5, O=14, G=7, then C=3, A=1, T=20, forming the code '3120'.