Pergunta de entrevista da empresa SIRI

what is difference between switch and while