Children who are mentally gifted and who are being instructed in a private full-time day school by persons capable of teaching, where all or part of the courses of instruction required to be taught in the public schools of this state is taught in a foreign language with not less than 50 percent of the total daily instructional time taught in the English language, shall be exempted. The attendance of the pupils shall be kept pursuant to Section 48222.