While solving these problems I'm confused about sign conventions of output voltages of IDEAL Diodes. Actually I can't get between which nodes the V is to be taken? Is it between +5 and -V? I solve them like this

a) V = +5 (Between +5 and 0) since diode is conducting.

but answer is -5V? Can any one explain a bit? • Hint: Either the diode dominates, or the resistor dominates. They are wired to be mutually exclusive. – Sparky256 Oct 28 '18 at 3:53
• For (a), you should merely notice that the diode is arranged so that it conducts (is on.) Assuming an ideal diode here, conduction means "zero voltage drop across the diode." If there isn't any voltage drop across the diode, then the voltage on both sides of the diode must be the same. That's how they came up with -5 V as the answer for (a). – jonk Oct 28 '18 at 3:59
• @jonk I'm asking about where this -5 appears? Is it between Positive end of diode and -5? – Saqeeb Oct 28 '18 at 4:03
• @FanBoy It appears where the letter $V$ appears and it is relative to the same point that the two power supplies are also relative to. – jonk Oct 28 '18 at 4:14
• All voltages are measured relative to "Zero volts", which isn't shown in those drawings, but is implied by the "+5V" and "-5V" labels. – Peter Bennett Oct 28 '18 at 4:41