What will happen when a dc source is used in front of a diode in half wave rectifier?

If the DC source biases the diode off, then the output will be zero. If it biases the diode on, then the output will be DC, with the voltage being nearly the same as the input voltage.