In Bosnia and Herzegovina, Croatia, Montenegro, North Macedonia, Serbia, and Slovenia, a gymnasium education takes four years following a compulsory eight or nine-year elementary education and ending with a final aptitude test called Matura. In these countries, the final test is standardized at the state level and can serve as an entrance qualification for universities.