The correct option is B 45
The given data set is
30, 35, 20, 50, 40, 45, 30
Let us arrange the data in ascending order, we get
20, 30, 30, 35, 40, 45, 50
Median = 35
The upper half of the data: 40, 45, 50
Upper quartile = 45.
Hence, the upper quartile of the data = 45.