Looking for Programmierung (BTW2102) 25/26 test answers and solutions? Browse our comprehensive collection of verified answers for Programmierung (BTW2102) 25/26 at moodle.bfh.ch.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What will the following code output?
for char in 'hello': if char == 'l': break print(char, end=' ')
Was ist der Zweck der range-Funktion in einer for-Schleife?
What is the purpose of the range function in a for loop?
Was wird der folgende Code ausgeben?
Find the output of the following program:
a = [1, 2, 3, 4]b = ac = a.copy()d = aa[0] = [5]print(a, b, c, d)
Zweck des Modus rb beim Öffnen einer Datei?
What is the purpose of rb mode in file opening?
Welche der folgenden ist die korrekte Syntax, um eine Ausnahme abzufangen und ihre Details in einer Variablen zu speichern?
Which of the following is the correct syntax to catch an exception and store its details in a variable?
Der Zweck des finally-Blocks in der Ausnahmebehandlung (Exception Handling) in Python ist:
What is the purpose of the finally block in exception handling?
Was ist das Resultat dieses Codes ?
What is correct as a result for from this code?
d = {1:'A', 2:'B', 3:'C'} del d[1] d[1] = 'D'del d[2] print(len(d))
Finde den Output von folgendem Programm:
Find the output of the following program:
a = {} a[1] = 1a['1'] = 2a[1]= a[1]+1count = 0for i in a: count += a[i] print(count)
Was wird der folgende Code ausgeben?
What will the following code output?
for i in range(3): print(i, end =' ')
Was wird der folgende Code ausgeben?What will the following code output?
numbers = [1, 2, 3, 4, 5]
for i in range(len(numbers)): num = numbers[i] if i % 2 == 0: continue print(num, end=' ')