The court may require any person called as a witness, who voted at such election, to answer touching the person’s qualifications as a voter, and, if the person was not a registered voter in the county where the person voted, then to answer for whom the person voted.