The correct answer is (d) choosing median of first, last and middle element as pivot
Easy explanation - In the median of three technique the median of first, last and middle element is chosen as the pivot. It is done so as to avoid the worst case of quick sort in which the time complexity shoots to O(n^2).