Clearly by definition of variance, if you move some probability mass farther away from the mean then this will increase variance. So all the probability mass is split between $0$ and $r$. Let $p = p(r)$. Then the mean is $pr$ and the expectation of the square is $pr^2$. Thus you want to maximize $pr^2 - (pr)^2 = r^2p(1-p)$. You can show the maximum occurs at $p = 1/2$ in which case the variance is $r^2/4$. I'm not sure about the two variable generalization but it seems like the maximum should occur when the two variables are independent, i.e. your support is a rectangle. If that's true, then you get the same answer for your variance quantity if $A$ is fixed regardless of the side lengths of your rectangle, and I believe the answer for the maximum will be $A^2/16$.