In a coded message, 'RAT' is coded as '321', 'BAT' as '654', and 'CAT' as '987'. What is the code for 'BAT'?

B. 654

Four friends, A, B, C, and D, are sitting in a row. A is to the left of B but to the right of C. D is not at either end. What is the correct order from left to right?

A. C, A, B, D

In a race, five runners A, B, C, D, and E finish in the following order: A finishes before B but after C. D finishes before E but after B. What is the correct sequence of finishers?

A. C, A, B, D, E

Five books are arranged on a shelf. Book A is to the left of Book B but to the right of Book C. Book D is to the right of Book E. What is the sequence of the books from left to right?

D. E, C, A, B, D

In a cooking competition, five chefs A, B, C, D, and E prepare dishes. A finishes before C but after B. D finishes before E but after C. What is the correct order of finishing?

A. B, A, C, D, E