(You are advised to draw out a circuit of buck converter to analyse the circuit operation.)
(You are advised to draw out a circuit of boost converter to analyse the circuit operation.)