logo

Crowdly

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!

Wie heißt das Modul, au dem hier importiert wird?

from file import mymodule as module

View this question

Wie erstellt man eine Klasse in Python?

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%
View this question

Wie erstellt man ein Objekt (oder Instanz) einer Klasse in Python?

0%
0%
0%
View this question

Welche Struktur hat der Rückgabewert des untersten Funktionsaufrufes?

my_dict = { "key1" : "val1", "key2" : "val2"}

def fun(**k):

    return k

fun(key1=my_dict)

View this question

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()

View this question

Was ist das Ergebnis des folgenden Ausdrucks? Gib als Antwort ein gültiges Python-Literal an.

True or 17

View this question

Das folgende Programm terminiert.

def func(x=10):

    if(x<1):

        func()

        return "done"

    return func(x-1)

func(3)

View this question

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)

View this question

Welchen Datentyp hat t?

t = ("elem1")

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!