Methoden in der Programmierung

Methoden in der Programmierung

11th Grade

13 Qs

quiz-placeholder

Similar activities

Methoden

Methoden

10th - 11th Grade

10 Qs

Java Basics

Java Basics

10th - 12th Grade

9 Qs

Java

Java

11th Grade

10 Qs

Menus, Dialog Boxes and Methods

Menus, Dialog Boxes and Methods

10th Grade - Professional Development

17 Qs

Java OOP Test für die Q1

Java OOP Test für die Q1

11th Grade

16 Qs

Java Arithmetic Operations

Java Arithmetic Operations

11th Grade

10 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

11th - 12th Grade

10 Qs

KHOIDONG

KHOIDONG

10th - 12th Grade

10 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?