Bebras Contest

A contest on informatics and computational thinking for primary and secondary schools

Bebras

What is Bebras?

The Bebras Contest is a test carried out in schools to bring informatics and computational thinking into the earliest years of students' education, both in compulsory schooling and in upper secondary school. This contest is held every year, in autumn in the northern hemisphere and in spring in the southern hemisphere, under teacher supervision in the school classroom.

What does computational thinking involve?

Computational thinking involves using the same set of problem-solving skills and techniques that software engineers use to write programs and applications. The Bebras challenges promote problem-solving skills and computer science concepts, including the ability to break tasks down into simpler parts, algorithm design, pattern recognition, pattern generalisation, and abstraction.

What is the contest like?

The contest lasts 45 or 50 minutes and has between 12 and 15 questions. No prior knowledge of computer science is required. It is held at five different levels: Primary years 3 and 4, years 5 and 6, ESO (lower secondary) years 1 and 2, ESO years 3 and 4, and Bachillerato (upper secondary) years 1 and 2. It can be taken at any time teachers consider appropriate.


The 2026 Bebras contests: from 9 November 2026

The contest will run on a new platform, so new instructions must be followed to take part.


Example exercises

bebras.ehu.es · improvement proposal

These exercises are official Bebras 2025 tasks, adapted here with real interactive response (drag, tap, check) instead of a static image. Designed to replace the current example carousel.

6 exercises · 6 different mechanics
10–12 years Sorting · multiple keys

The queen's favourite fruit

Five villagers have come to offer the queen baskets of fruit: apples, bananas and pears. Each basket contains 8 pieces of fruit. Apples are her favourite fruit: she will receive first whoever brings the most apples. In case of a tie, whoever has the most bananas goes first.

Sort the five baskets by dragging them (or tap one and then tap another to swap them): the leftmost one is the one the queen receives first.
See explanation

How to solve it

Count how many apples each basket has and sort them from most to fewest. Basket B (5 apples) goes first. Baskets A and D tie with 3 apples, so the tie is broken by looking at the bananas: D has 4 and A has 2, so D goes before A. Last come C (2 apples) and E (1 apple). Final order: B, D, A, C, E.

This is computer science and computational thinking

This is a case of sorting by multiple keys: items are first compared by a primary criterion (apples) and, only in case of a tie, by a secondary one (bananas) — just like a program that sorts a contact list by surname and, if that matches, by first name. It requires abstraction (ignoring the pears, which don't matter) and applying a comparison algorithm systematically.