How a rheostat works?

Can you answer this question?