I know that the maximum energy that can be stored in a capacitor is:
$$ U = \frac{Q^2}{2\,C}\,. $$
What I am asked is to say how much energy was stored when half of the electric charge that could be contained was deposited in the capacitor. I would naturally answer "a quarter", since energy depends on the square of the charge, but the correct answer should be "a half". Because? What am I doing wrong?