Micron Technology Interview Question

What is for and while loop? Give scenario where each one is applicable.