In photoelectric effect, electrons will leave the metal surface when illuminated by light of appropriate…