The exam will be in English, but you may answer in English or Swedish. You are allowed to bring a "cheat sheet" to the exam, which must be one sheet of A4 paper, and must be handwritten. You can write on both sides of the cheat sheet.
The exam format
There are 6 questions. Instead of points, for each individual question you get a 3, 4 or 5 (or a U). The grade you get on the exam is then determined as follows:
If you get (at least) a 3 on 3 questions, you get a 3 overall.
If you get (at least) a 4 on 4 questions, you get a 4 overall.
If you get (at least) a 5 on 5 questions, you get a 5 overall.
Solving a question entirely correctly will get you a 5 on that question. An answer with minor mistakes may also get a 5, depending on the mistake; larger mistakes will lead to a lower grade, or a U, on that question.
For some questions, there are extra requirements in order to get a 4 or 5 on that question:
If the question is to design an algorithm, the required complexity might be lower if you want a higher grade. This will be clearly written in the question.
A question may have an extra part labelled "for 4" or "for 5". You must answer that part in addition to the rest of the question, if you want to get the higher grade. For example, if you fail to answer a part marked "for 4", the highest grade you can get on that question will be a 3.
If you read Swedish, here are plenty of old exams from the course: old exams, even older exams. If you want to study these, you should start with the most recent exams and work backwards, since the content of the course has changed over the years.