At all state, county, city or town elections, agricultural improvement district elections and primary elections, ballots or votes may be cast, recorded and counted by voting or marking devices and vote tabulating devices as provided in this article.