(a) The deviation of a ray of light passing through a prism depends on angle of prism, nature of material of the prism and angle of incidence of the ray.
(b) (Angular) dispersion of light through a prism depends on angle of prism and nature of material of the prism.