Guide · Additional examples
Additional Examples with Solutions
Additional tasks and solutions on data, branching, loops and object-oriented programming. The materials are meant for extending the material, preparing for tests and for competitions.
Every collection has tasks of different difficulty. The solutions are hidden until you open them.
- Primary and secondary school
- C, C++, Java
- Test preparation
Some lessons linked below are available only in Serbian for now. They are marked (SR).
1 Collections by topic
Choose the topic that matches what you are learning now.
Data and data types
Formulas, modulo and converting units, with a quiz.
Open lesson →Branching in a program
Conditions, logical expressions and branching.
Open lesson →Loops
Tasks with the for, while and do-while loops.
Open lesson →Combined tasks (SR)
Data, branching and loops together – from competitions.
Open lesson →Classes and objects
OOP tasks in Java with solutions.
Open lesson →Arrays and matrices – additional tasks
A collection of tasks on arrays and matrices with solutions.
2 Selected solutions
Individual tasks with a detailed solution.
Picture frames
Working with objects and calculating dimensions.
Open lesson →A group of workers
Classes and an array of objects.
Open lesson →A car showroom
Processing data about cars.
Open lesson →The movement of a car
A class with methods for speed and distance.
Open lesson →Restaurant orders (C#) (SR)
Classes, an interface, exceptions and sorting – a solution in C#.
Open lesson →Interval
How long two people were at work together – the intersection of two time intervals.
Open lesson →3 Tests
When you finish a collection, check your knowledge.
