In the circuit shown here, assuming threshold voltage of diode is negligibly small, then voltage is correctly represented by :
Due to the diode, the current will be allowed only along B to A through the resistor. Hence will have only negative values i.e., the following graph represents the output voltage .

Tagged p-n junction diode and its characteristics. Machine-assigned, so read it as a strong shortlist rather than a verdict.