FP2 lab
Everything on the site to practice FP2 with nothing to install: Python for the first part and Java for the second, both with several files, as in the assignments and the practical mock exam.
sergio@learns:~/lab/fp2$ ls --by-topic
Pythonfirst part
Javasecond part
- TeaVMJavaCompile and run real classes, with main and packages
- Topic
- From syntax to collections, iterators and LinkedList
- Helps you see
- Compiling several classes without installing the JDK and seeing the javac error on its line; the practical mock exam uses this same playground.
$ javac Main.java && java Main - Python · JavaRegular expression testerYour pattern with the real Python or Java engine: what matches, the groups, what each function returns and the code you would write
- Topic
- Regular expressions in Java
- Helps you see
- The same pattern with Java’s Pattern and Matcher: matches() versus find(), named groups and the double backslashes the string needs, without compiling anything.
$ regex --python '\d{4} ?[B-DF-HJ-NPR-TV-Z]{3}'Review the theory: Regular expressions in Java - PythonAlgorithm visualizerYour Python program really run, step by step: the list as bars, every comparison, the call stack and the recursion tree
- Topic
- Arrays: sorting and searching (Arrays.sort and binarySearch)
- Helps you see
- What bubble, selection, insertion, merge sort and quicksort do inside, comparison by comparison, with the Java version alongside to compare.
$ algorithm --example bubbleReview the theory: Arrays: sorting and searching (Arrays.sort and binarySearch)

IC2 theory mock exam — first midterm, second midterm or the full exam, with your real mark and a review of every mistake (as if you were in the exam room)