Quench dynamics of an ultracold two-dimensional Bose gas