When the groups with higher priority (ie, with high atomic number) are present on same side of double bond, then the configuration is Z but when present on opposite side of double bond, the configuration is E.
(Priority : Br>Cl and CH3>H ) Hence, compound (i) and (iii) have (Z) configuration.