Q3 is a good problem on one level, but a real gotcha on another. I wonder how many students forget to add in the margin measurements to get the total dimensions after going thru all the computing, especially if this question is given on a major exam....
For the cylinder in the sphere: would have been much easier to maximize the volume as a function of y instead of x. The first and second derivatives are simple (no derivatives of square roots)