A transformer works on the principle of electromagnetic induction, which is only possible in case of AC.
Hence, when DC (zero frequency) is supplied to it, the primary coil blocks the current supplied to it. Thus, the induced current in the secondary coil is zero. So, the output voltage will be zero.