4. Notwithstanding section 5, a resident, as well as his spouse and any unmarried child under 18 years of age who reside permanently with him, shall, unless he elects domicile outside Québec, retain the status of resident:(a) if the resident stays outside Québec as a student registered in an educational institution and pursuing a study program therein;
(b) if the resident stays outside Québec as a full-time unpaid trainee in a university, an institution affiliated with a university, a research institute or a governmental or international body;
(c) if the resident is a public servant in the service of the government of either Québec or Canada and assigned outside Québec;
(d) if, while his spouse and children remain in Québec or while he keeps a dwelling therein, the resident stays outside Québec for less than 12 consecutive months for the purpose of seeking or accepting temporary employment or executing a contract in another province or country, provided he returns to Québec at least once a year or notifies the Société de l’assurance automobile du Québec that he is unable to comply with this requirement; or
(e) if the resident is in the service of a non-profit organization having its head office in Canada and works abroad within the framework of an international aid or cooperation program recognized by the Minister of Health and Social Services.