They are pumped across the mitochondrial inner membrane against their concentration gradient (to where their concentration is high); as the H+ ions flow back to where their concentration is low, they drive ATP synthase to form ATP
NaOH will dissociate as Na+ and OH- in the solution.
Two independent variables could change at the same time, and you would not know which variable affected the dependent variable