Mayor Vincent C. Gray, grappling with an estimated $312 million budget deficit in fiscal 2012, is asking residents whether they would support an increase in fees or taxes and whether they would prioritize education or other issues in an online survey.