The Supervisor of Elections prior to each primary shall ascertain the public offices to be filled at the ensuing general election, and for which candidates are to be nominated at such primary, and otherwise, in accordance with the provisions of this title.