Beruflich Dokumente
Kultur Dokumente
Modellierung im Bauingenieurwesen
Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen
IBAN –
last_name –
prime_number –
temperature –
letter –
is_clicked –
Algorithms & Programming | Page 3 Institut für rechnergestützte
Modellierung im Bauingenieurwesen
1. Programming Basics
Which errors are in the following source code? To which type of errors do they
belong?
What is the meaning of data encapsulation with regard to the class Circle?
How would you improve it?
Which line of code do you have to add in the following example in order that the
code will be compiled without errors?
You are provided with the following code snippet. What values do the attributes of
the circle object c1 have?
Which output in the console line is generated by the following recursive method ?
Which condition has to be fulfilled by the structure of your data to use the Binary
Search Algorithm?
Describe and/or sketch the process of finding the value 23 in the array below with
the Binary Search Algorithm.
Describe or sketch the process of sorting the array below by using the Insertion
Sort Algorithm.
6 2 3 1
6 2 3 1
2 6 3 1
2 3 6 1
1 2 3 6
Describe or sketch the process of sorting the array below by using the Insertion
Sort Algorithm.
6 2 3 1
6 2 3 1
2 6 3 1
2 3 6 1
1 2 3 6
For what reasons the Insertion Sort Algorithm is faster than the Bubble Sort and
the Selection Sort Algorithm?