Five books are arranged on a shelf: P, Q, R, S, and T. Q is to the left of R but to the right of S. T is at one end. Which book is second from the left?

B. Q

Five people - X, Y, Z, W, and V - are sitting in a row. X is to the left of Y. Z is to the right of W. V is not at either end. Who is sitting in the middle?

B. Y

Five students: A, B, C, D, and E scored different marks in an exam. A scored more than B but less than C. D scored the highest. E scored less than A. Who scored the second highest?

C. C

Four friends, A, B, C, and D, have different pets: a dog, a cat, a bird, and a fish. A does not have a dog. B has a cat. C does not have a fish. Who has the dog?

D. D

In a family of six members: P, Q, R, S, T, and U, there are two males and four females. P is a teacher, Q is a doctor, R is a male, and S is U's sister. Who is the doctor?

B. Q