Search Header Logo

Methoden in der Programmierung

Authored by Barbara Messing

Computers

11th Grade

Used 2+ times

Methoden in der Programmierung
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public int plus(int x, int y): Was wird die Rückgabe dieser Methode sein?

Zwei ganze Zahlen, x und y.

Eine ganze Zahl.

Ein Pluszeichen.

Drei Zahlen: x, y und z.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int zähle (List<String> meine_liste): Welchen Datentyp hat der Rückgabewert?

List

void

int

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void reset(int i) : Welchen Rückgabewert hat diese Methode?

int

string

i

keinen

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wenn der Rückgabetyp "void" ist: Welcher Befehl fehlt dann im Methodenrumpf?

Das kann man so nicht sagen

return ...

... ToString()

public

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie heißt das "public" in public int plus(int x, int y)?

Rückgabewert

Eingabetyp

Name der Methode

Zugriffsmodifikator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

return z; heißt was?

z wird neu initialisiert

der aktuelle Wert von z wird ausgegeben

z wird deklariert

z ist nicht zulässig hier

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Was braucht man für Datentypen, um die Anzahl der Elemente einer Liste zu bestimmen?

Eingabe: Text, Ausgabe: Liste

Eingabe: Text, Ausgabe: Liste

Eingabe: Liste, Ausgabe: ganze Zahl

Eingabe: ganze Zahl, Ausgabe: Liste

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?