Electromagnetism

Which expression correctly gives the energy stored in a capacitor with charge Q and voltage V?