In jurisdictions with compulsory education, truancy or "playing hooky" is being absent from school without a valid reason (sickness, caring for family members, etc). Attending school is a right and obligation that is held sacrosanct by many governments, especially in nations strongly guided by ideology or religion, as it gives youths the foundational knowledge and values necessary to live as responsible law-abiding citizens in civilized society. In addition, skipping school is very disrespectful for teachers who spend considerable time preparing the classes. For these reasons, truancy is often treated as a serious offense (on par with bullying and cheating) by school authorities. In some cases, truant students and their parents may also face criminal prosecution or loss of welfare benefits.
So where does your nation stand on this issue? Here are a few questions you can use as a starting point, but you are welcome (and expected) to be more verbose in your answer.
Is education compulsory?
At which age does compulsory education start?
At which age does compulsory education end?
Is homeschooling legal?
How do schools deal with students who skip class?
Is truancy a crime? For whom, students or parents?
Are there truant officers (officials who catch truant students and bring them back to school)?
Has truancy been a big problem in your nation?
In the Holy Catholic State, education is compulsory for everyone aged 6 to 18 (16 for rural areas). Homeschooling and private schools are prohibited (except for children of expats and diplomats)—all Portuguese youths must attend state schools in order to receive the proper religious, moral and civic instruction as dictated by law.
In all schools, there's zero tolerance for any truancy, whether it's skipping school or any class within (there are no electives, all classes are mandatory including morning prayers). For a first offense, the student would typically have to stay behind after school and do manual work, like scrubbing the toilets or copying lines from the Bible. If the student skips again, a good caning by the headmaster will be in order. "Frequent fliers" will find themselves in solitary confinement, locked in a small room alone with nothing but a pile of schoolwork that must be done by the end of the day, or else a caning and more solitary confinement will ensue. Repeat enough times (more than 10 truancies) and the student will be forced to repeat the year, no matter how good the grades.
Once students are 12 years old, they can also be criminally charged for truancy (on top of the punishments given in school). First offense gets a warning and a transport back to school. Subsequent offenses are met with a whipping, and a fine for the parents. If, despite all attempts, the student can't be convinced to stay in school, it's off to
Even though we don't have dedicated "truant officers", the regular police are more than enough for this. All citizens are required by law to carry their national ID cards, and to show them to officials whenever demanded. For students, the ID card says which school they go to and which grade they're in. In addition, students must wear their school dress at all times from Monday to Friday. This makes it easy to identify who should be in school. Businesses like movie theaters and malls must turn away students during school hours (or else be prosecuted for enabling truancy), so there's nothing to lure them away from their educations. For these reasons combined, truancy has never been a problem under the government of Afonso Salazar.