Guide · Examples · Tests

Programming Tests – a Guide

Tests by topic, arranged in the order the material is learned: data and formulas, branching, loops, arrays, matrices, strings, functions and object-oriented programming.

For every topic there are tasks in groups (PDF), a practice test with a hint and a solution, a quiz and a list of common mistakes.

  • Primary and secondary school
  • C, C++, Java
  • Test preparation
Tip: a test is for checking, not for learning – first do the examples from the topic, and only then try the test.

Some lessons linked below are available only in Serbian for now. They are marked (SR).

1 Basics: data, branching and loops

The first three tests of the school year. Each has PDF groups and a practice test with solutions.

2 Arrays and matrices

Working with many data of the same type.

3 Strings and functions

Processing text and splitting a program into functions.

4 Object-oriented programming (Java)

Classes, objects, constructors, methods and a graphical window.

5 Practice before the test

Collections of tasks of the same difficulty as the tests.

How to use the tests

  1. Revise the lesson and do the easier examples from the topic (the link is at the top of every page).
  2. Choose one PDF group and solve it in 45 minutes, without looking at your notes.
  3. Do the practice test from the page and only then open the solutions.
  4. Check yourself with the quiz at the bottom of the page and read "Common mistakes".
For teachers: the groups in the PDF are of the same difficulty, so they can be handed out by desk. Every page also has a suggested scoring (3 tasks of 10 points each). The practice test with solutions is suitable for a revision lesson before the test.