(c) Subdivisions (a) and (b) do not apply to any person who brings or possesses a knife having a blade longer than 2 1/2 inches, a razor with an unguarded blade, a razor blade, or a box cutter upon the grounds of, or within, a public or private school providing instruction in kindergarten or any of grades 1 to 12, inclusive, or any private university, state university, or community college at the direction of a faculty member of the private university, state university, or community college, or a certificated or classified employee of the school for use in a private university, state university, community college, or school-sponsored activity or class.
(d) Subdivisions (a) and (b) do not apply to any person who brings or possesses an ice pick, a knife having a blade longer than 2 1/2 inches, a razor with an unguarded blade, a razor blade, or a box cutter upon the grounds of, or within, a public or private school providing instruction in kindergarten or any of grades 1 to 12, inclusive, or any private university, state university, or community college for a lawful purpose within the scope of the person's employment.