Step 1: Analyze the given conditions.
- Q is ahead of P. This means Q stands before P.
- R is between P and S. So, P and S are at the ends, with R between them.
- 5 is at the end of the queue. This implies 5 is either at the back or front, but not in the middle.
Step 2: Build the queue.
From the above conditions, the order of the people in the queue can be deduced as:
\[
Q, P, R, S, 5.
\]
Step 3: Conclusion.
Since Q is ahead of P, and based on the arrangement, Q is at the front of the queue.
Thus, the correct answer is (a) Q.
Five friends A, B, C, D, and E are sitting in a row facing north, but not necessarily in the same order:
B is to the immediate left of C
E is not at any of the ends
D is to the right of E but not next to C
A is at one of the ends
Who is sitting in the middle?