C-DAC interview question

What is the difference between path variable and query param