Answer should be (4) Insertion Sort, Merge Sort
Explanation -
The question asks specifically for in-place sorting algorithms, which means the algorithms in which only $O(1)$ space is used.
Hence, out of the options -
Insertion Sort - Sorts in place with worst case time and space complexity of $O(n^2)$ and $O(1)$ respectively.
Heap Sort - Sorts in place with worst case time and space complexity of $O(n \cdot \log n)$ and $O(1)$ respectively.
Merge Sort - Sorts out of place with worst case time and space complexity of $O(n\cdot \log n)$ and $O(n)$ respectively.
Quick Sort - Sorts in place with worst case time and space complexity of $O(n^2)$ and $O(1)$ respectively.
Now for the given question, P needs to be an in place sorting algorithm, and Q needs to be out of place sorting algorithm, Hence option 4.