Confusion about output voltage
If the answer to a) is -5V, then your textbook is assuming an ideal diode with no forward drop.  An ideal diode is a perfect conductor when forward-biased, meaning there is no voltage drop across it. Therefore V must equal -5V.