CA Ed Code 48850. (a) (1) It is the intent of the Legislature to ensure that all pupils in foster care and those who are homeless, as defined by the federal McKinney-Vento Homeless Assistance Act (42 U.S.C. Sec.11301 et seq.), have a meaningful opportunity to meet the challenging state pupil academic achievement standards to which all pupils are held. In fulfilling their responsibilities to these pupils,educators, county placing agencies, care providers, advocates,and the juvenile courts shall work together to maintain stable school placements and to ensure that each pupil is placed in the least restrictive educational programs, and has access to the academic resources, services, and extracurricular and enrichment activities that are available to all pupils, including, but not necessarily limited to, interscholastic sports administered by the California Interscholastic Federation. In all instances, educational and school placement decisions shall be based on the best interests of the child and shall consider, among other factors, educational stability and the opportunity to be educated in the least restrictive educational setting necessary to achieve academic progress. (2) A foster child who changes residences pursuant to a court order or decision of a child welfare worker or a homeless child or youth shall be immediately deemed to meet all residency requirements for participation in interscholastic sports or other extracurricular activities. (3) (A) Pursuant to the federal McKinney-Vento Homeless Assistance Act (42 U.S.C. Sec. 11301 et seq.), public schools, including charter schools, and county offices of education shall immediately enroll a homeless child or youth seeking enrollment except where the enrollment would be in conflict with subdivision (d) of Section 47605.