logo

Crowdly

Browser

Add to Chrome

Programmierung (BTW2102) 25/26

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!

Was ist die Ausgabe des folgenden Codes?

What is the output of the following code?

num1 = "5"

num2 = 3

result = num1 * num2

print(result)

0%
50%
0%
50%
View this question

Was ist die Ausgabe des folgenden Codes?

What is the output of the following code?

x = "5"

y = "2"

print(x + y)

50%
0%
0%
50%
View this question

Was ist die Ausgabe des folgenden Codes?

What will the following code output?

numbers = [3, 7, 2, 8, 5]

for i in range(len(numbers)):

    num = numbers[i]

    if i == num:

        break

    print(num, end=' ')

100%
0%
0%
0%
View this question

Was ist das Resultat?

What will be the result?

d1 = {'GFG' : 1, 'Google' : 2, 'GFG1' : 3}

print(d1['GFG1'])
0%
0%
100%
0%
View this question

Was wird der folgende Code ausgeben?

What will the following code output?

for i in range(3):

   for j in range(2):

       print(i, j)

0%
100%
0%
0%
View this question

Was ist das Resultat von:

What will be the output of:

d = {'a': 5, 'b': 10}

d['a'] = 15

print(d)

0%
0%
100%
0%
View this question

Was passiert, wenn in einem Python-Programm eine Ausnahme ausgelöst wird, aber nicht abgefangen wird?

What will happen if an exception is raised but not caught in a Python program?

50%
50%
0%
0%
View this question

Was macht folgender Code?

What does the following code snippet do?

with open("file.txt", "a") as file:

   file.write("WING data")

0%
100%
0%
0%
View this question

Was wird der folgende Code ausgeben?

What will the following code output?

numbers = [1, 2, 3, 4, 5]

for i in range(len(numbers) - 1, -1, -1):

   print(numbers[i], end=' ')

0%
0%
50%
50%
View this question

Welcher der folgenden Codeausschnitte öffnet eine Datei namens „example.txt“ im Schreibmodus und schreibt „Hello, World!“ hinein?

Which of the following code snippets opens a file named "example.txt" in write mode and writes "Hello, World!" to it?

0%
50%
50%
0%
View this question

Want instant access to all verified answers on moodle.bfh.ch?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome