The Pascal programming language is one of the most pedagogical languages to learn coding. The best way to improve coding skills is through practice. In that regard, we give in our programming course the opportunity to practice the Pascal programming language concepts by providing exercises with solutions. To enhance learners' understanding, research suggests to represent exercises querying using ontologies. Nevertheless, such research focuses mainly on object-oriented programming (Java, C#) and C programming language. For this reason, this work proposes PasOnto ontology to describe exercise solutions essentially in Pascal programming. We also propose a web and mobile interface around this ontology so as to query and highlight Pascal keywords in displayed exercise solution.