Pergunta de entrevista da empresa PwC

What's a query param and a path param and when should you use each of them ?