The Attorney General shall, when required by either branch of the General Assembly, attend during their sessions and give his aid and advice in the arrangement and preparation of legislative documents and business; and he shall give his opinion upon questions of law submitted to him by either branch thereof, or by the Governor.