Infosys Interview Question

I was asked to describe the differences between if, for, and while loops