Breusch-Pagan Test

How is nR^2 a chi-squared random variable with the number of degrees of freedom equal to the number of independent variables in the regression?

This is far beyond the scope of the exam. If you want, I suggest you check out this website for the properties of a chi-squared RV.

https://onlinecourses.science.psu.edu/stat504/node/23