Correct answer is (b) 3V
For explanation: In piecewise linear model, we can consider diode as a voltage source of 0.5V along with an ideal diode. VIN being applied is 3V, which is greater than 1.5-0.5 V, and hence the diode is reverse biased and input appears at output.