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!
Wie heißt das Modul, au dem hier importiert wird?
from file import mymodule as module
Wie erstellt man eine Klasse in Python?
Welche der folgenden Listen-Operationen entspricht diesem Code?
def func(my_list):
i = 0
for x in my_list:
i++
return i
Wie erstellt man ein Objekt (oder Instanz) einer Klasse in Python?
Welche Struktur hat der Rückgabewert des untersten Funktionsaufrufes?
my_dict = { "key1" : "val1", "key2" : "val2"}
def fun(**k): return k
fun(key1=my_dict)
Welche Exception wird hier auftreten?
class Foo: def __init__(self, val): self.key = val def bar(self): return self.key
foo = Foo(10) foo.bar()
Was ist das Ergebnis des folgenden Ausdrucks? Gib als Antwort ein gültiges Python-Literal an.
True or 17
Das folgende Programm terminiert.
def func(x=10): if(x<1): func() return "done" return func(x-1)
func(3)
full ist eine Funktion in numpy und erwartet zwei Integer. Wahr oder falsch - Der folgende Code wirft einen Fehler.
from numpy import *full(10,2)
Welchen Datentyp hat t?
t = ("elem1")
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!