Skip to content
ES EN
Theme: automatic

Exam Code · Solved programming exercises

Solved programming exam exercises with the code compiled and run: the syllabus map, the languages and the difficulty levels of the Exam Code series.

Exam Code · the series

The whole programming syllabus, station by station.

Every line is a subject and every stop a solved exercise. The solutions are compiled and run against their test cases before they are published. Pick your line and get off where you failed.

33 exercises published7 languages33 with the solution run and tested

The series' code is open source: it lives in its GitLab repository, under the MIT License.

The syllabus map

One line per subject, one stop per exercise

Fundamentals 11Data structures 5Algorithms 3Object-oriented programming 9Operating systems 3Databases 1Networks 1
Stop size:BasicExamTop grade
Metro map of the syllabus33 exercises spread over 7 lines. Every stop links to its exercise.Fundamentals11 exercisesSolved exercise: pass by value and by reference in C (C, Basic level)Solved exercise…Solved exercise: streaks and maximum in a list in Python (Python, Basic level)Solved exercise…Solved exercise: matrix transpose, diagonals and row sums in Python (Python, Exam level)Solved exercise…Solved exercise: C matrix sums, transpose and trace in C (C, Exam level)Solved exercise: C…Solved exercise: normalize a string in place with pointers in C (C, Exam level)Solved exercise…Solved exercise: matrix rotate and shift commands in C (C, Exam level)Solved exercise…Solved exercise: array sum and maximum in x86-64 assembly (Assembly, Exam level)Solved exercise…Solved exercise: count, filter and summarize a log file in Bash (Bash, Exam level)Solved exercise…Solved Exercise: Validate and Extract Data with Regex in Python (Python, Exam level)Solved Exercise…Solved exercise: subtitle line wrapping with lists in Python (Python, Exam level)Solved exercise…Solved exercise: exact rank and determinant with Bareiss in C (C, Top grade level)Solved exercise…Structures5 exercisesSolved exercise: array-based stack and balanced brackets in C (C, Basic level)Solved exercise…Solved exercise: dictionaries, sets and tuples in Python (Python, Basic level)Solved exercise…Solved exercise: dynamic matrices with malloc and free in C (C, Exam level)Solved exercise…Solved exercise: stack and recursive expression evaluator in Python (Python, Exam level)Solved exercise…Solved exercise: linked list with classes and new/delete in C++ (C++, Exam level)Solved exercise…Algorithms3 exercisesSolved exercise: counting inversions with merge sort in Java (Java, Exam level)Solved exercise…Solved exercise: sorting and binary search with cost analysis in Python (Python, Exam level)Solved exercise…Solved exercise: recursive search in a rotated list in Python (Python, Exam level)Solved exercise…OOP9 exercisesSolved exercise: classes and objects with a wallet in Java (Java, Basic level)Solved exercise…Solved exercise: enrollment waitlist with exceptions in Java (Java, Exam level)Solved exercise…Solved exercise: inheritance, constructors and super in Java (Java, Exam level)Solved exercise…Solved exercise: polymorphism and dynamic binding in Java (Java, Exam level)Solved exercise…Solved exercise: interfaces, default methods and multiple implementation in Java (Java, Exam level)Solved exercise…Solved exercise: Java serialization with transient fields (Java, Exam level)Solved exercise…Solved exercise: warehouse inventory with classes, TreeMap and exceptions in Java (Java, Exam level)Solved exercise…Solved exercise: shopping receipt with classes and dunders in Python (Python, Exam level)Solved exercise…Solved exercise: polymorphic fleet with deep cloning in C++ (C++, Top grade level)Solved exercise…Operating systems3 exercisesSolved exercise: splitting work across threads in Java (Java, Exam level)Solved exercise…Solved Exercise: 6 POSIX Threads That Identify Themselves in C (C, Exam level)Solved Exercise: 6…Solved exercise: threads that split a calculation in Python (Python, Exam level)Solved exercise…Databases1 exerciseSolved exercise: JOINs, subqueries and GROUP BY in SQL (SQL, Exam level)Solved exercise…Networks1 exerciseSolved exercise: a TCP text protocol with a receive buffer in Python (Python, Exam level)Solved exercise: a…

Along each line the stops run from the basic exercises to the top-grade ones. Scroll the map sideways if it does not fit your screen.

Every exercise, by language

Every link opens the solved exercise on the blog, grouped by programming language and subject.

Solved Python exercises · 11 exercises

Solved Java exercises · 9 exercises

Solved C exercises · 8 exercises

Solved C++ exercises · 2 exercises

Solved Assembly exercises · 1 exercise

Solved Bash exercises · 1 exercise

Solved SQL exercises · 1 exercise

By language

Exercises published per language

  1. 1python11
  2. 2java9
  3. 3c8
  4. 4cpp2
  5. 5asm1
  6. 6bash1
  7. 7sql1

A real count of the series catalogue, in this language.

Syllabus coverage

Which subjects the series covers

Which subjects the series coversFundamentals: 100% (11)Data structures: 100% (5)Algorithms: 75% (3)Object-oriented programming: 100% (9)Operating systems: 75% (3)Databases: 25% (1)Networks: 25% (1)Fundamentals100 %Structures100 %Algorithms75 %OOP100 %Operating systems75 %Databases25 %Networks25 %
Each axis is a subject. 100% means 4 published exercises in it: it measures how many exercises exist, not how well each student knows the subject.
Featured stops
Exam season
21days until they end

November and December exams (Colombia) is under way and ends on 10 Dec.

Exams are close right now in:

United States MIT · Stanford · CMUMexico UNAM · Tec · IPNColombia Uniandes · UNALArgentina UBA · UTNPeru UNI · PUCP · UNMSMChile UChile · PUC · USMVenezuela UCV · USB

A year of exercises

Publication calendar for the last yearMonWedFriDecJanFebMarAprMayJunJulAugSepOctNov5 Mar: 14 Oct: 15 Oct: 16 Oct: 17 Oct: 18 Oct: 19 Oct: 112 Oct: 113 Oct: 114 Oct: 116 Oct: 118 Oct: 119 Oct: 121 Oct: 122 Oct: 123 Oct: 125 Oct: 126 Oct: 127 Oct: 128 Oct: 130 Oct: 12 Nov: 13 Nov: 15 Nov: 16 Nov: 19 Nov: 110 Nov: 111 Nov: 112 Nov: 113 Nov: 115 Nov: 116 Nov: 117 Nov: 1
lessmoreExam week
Each square is a day; the stronger the colour, the more exercises were published. The marked bands are exam weeks in English-speaking countries.

Difficulty of the catalogue

Difficulty of the catalogue33exercises
Basic 15 % (5)Exam 79 % (26)Top grade 6 % (2)

What comes up most in midterms

The subjects with the most exercises published in the series; for each, the latest exam-level one.

Your exercise

Which exercise should we solve next?

Tell us which kind of exam exercise you would like solved and tested. We review every suggestion by hand and, if it fits, it joins the list of upcoming exercises.

Newsletter

Your weekly ticket

Every Sunday, an email with the best of the week on the blog. Choose the software engineering section and you get the series’ new exercises.

next departureSunday 22 Novplatform ES · EN

The exercises and figures come from the series catalogue and are recalculated every day.

Updated 19 Nov 2026, 12:44 (Madrid time)Data from the Exam Code catalogue