logo

Crowdly

Browser

Add to Chrome

Selbstlerneinheit Python4Java (P4J)

Looking for Selbstlerneinheit Python4Java (P4J) test answers and solutions? Browse our comprehensive collection of verified answers for Selbstlerneinheit Python4Java (P4J) at moodle.rwth-aachen.de.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Der Unterschied zwischen Funktionen in Python und Methoden in Java ist nur eine Benennungssache.

0%
0%
View this question

Wie viele Elemente sind in my_set nach Ausführung des folgenden Skripts? Gib eine Zahl (nur Ziffern 0 bis 9) ohne Leerzeichen, Anführungszeichen, etc. als Antwort ein.

my_set = {1,2,3}

my_set2 = {3,4,5}

set.union(set2)

View this question

Was ist die Ausgabe des folgenden Programms?

a = []

lst = [a]

lst.append(a)

lst[0].append(1)

print(lst[1])

View this question

x = 10 ist...

View this question

Welche Exception wird hier geworfen?

class Dog:

    def __init__(self):

        pass

    def woof(): 

        print("woof")

doggy = Dog()

doggy.woof()

0%
0%
0%
0%
View this question

Die 4. Zeile wirft eine Exception. Wahr oder falsch?

fruits = ["Apfel", "Birne", "Kirsche"] 

fruits2 = list(fruits)

fruits2.append("Mango") 

fruits.index("Mango")

0%
0%
View this question

Das folgende Skript wirft einen Fehler:

func()

def func():

    print("Error?")

0%
0%
View this question

Was gibt der folgende Ausdruck zurück?

dict = {"A":12, "B":13, "C":14}

dict.items()

0%
0%
0%
View this question

Was gibt das folgende Programm aus?

row = 5 

for i in range(1, row + 1, 1): 

      for j in range(1, i + 1): 

            print(j, end=' ') 

      print("")

0%
0%
0%
View this question

Welche der folgenden Listen-Operationen entspricht diesem Code?

def func(my_list):

   i = 0

   for x in my_list:

      i++

   return i

0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.rwth-aachen.de?

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

Browser

Add to Chrome