Methoden in der Programmierung

Methoden in der Programmierung

11th Grade

13 Qs

quiz-placeholder

Similar activities

09_Minesweeper

09_Minesweeper

9th - 12th Grade

10 Qs

8.12 C++ Test on Classes

8.12 C++ Test on Classes

9th - 12th Grade

15 Qs

Java Arithmetic Operations

Java Arithmetic Operations

11th Grade

10 Qs

Enkapsulasi

Enkapsulasi

11th Grade

10 Qs

Methods in Java

Methods in Java

11th - 12th Grade

10 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

11th - 12th Grade

10 Qs

Divide et Impera

Divide et Impera

11th Grade - University

12 Qs

Chương trình con 2

Chương trình con 2

11th Grade

15 Qs

Methoden in der Programmierung

Methoden in der Programmierung

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Barbara Messing

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?