Polyaniline is a widely studied conducting polymer and is a useful material in its bulk and thin film form for many applications, because of its excellent optical and electrical properties. Pristine and iodine doped polyaniline thin films were prepared by a.c. and rf plasma polymerization techniques separately for the comparison of their optical and electrical properties. Doping of iodine was effected in situ. The structural properties of these films were evaluated by FTIR spectroscopy and the optical band gap was estimated from UV-vis-NIR measurements. Comparative studies on the structural, optical and electrical properties of a.c. and rf polymerization are presented here. It has been found that the optical band gap of the polyaniline thin films prepared by rf and a.c. plasma polymerization techniques differ considerably and the band gap is further reduced by in situ doping of iodine. The electrical conductivity measurements on these films show a higher value of electrical conductivity in the case of rf plasma polymerized thin films when compared to the a.c. plasma polymerized films. Also, it is found that the iodine doping enhanced conductivity of the polymer thin films considerably. The results are compared and correlated and have been explained with respect to the different structures adopted under these two preparation techniques.