Methoden in der Programmierung

Quiz
•
Computers
•
11th Grade
•
Easy

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
Similar Resources on Wayground
9 questions
C# Variables and Data Types

Quiz
•
8th Grade - University
10 questions
Xб_сор

Quiz
•
9th - 12th Grade
10 questions
C#

Quiz
•
11th Grade
10 questions
Variables and Data Types

Quiz
•
10th - 12th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
12 questions
Divide et Impera

Quiz
•
11th Grade - University
10 questions
NTP-METOT

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade