Total Exam Tries

Hi,

Is the second exam considered a free try if i already wrote the first one? so Total of 4 tries?

It depends on your study subject and is written down in the corresponding study regulations.

For computer science core course, it was (check if it still is) the case that the first try at the first possible date did not count as a failed attempt.
Therefore, if you took the regular and late exam and failed both, it would only count as one attempt.

There were also many regulations regarding covid in the last years. But as far as I know, they are no longer in place.

In general, the better grade counts. If you take the late exam, you can only get better but not worse.