
Prog1 Tut 04
Quiz
•
Computers
•
University
•
Hard

Ricardo Keiling
Used 3+ times
FREE Resource
Enhance your content
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Was passiert bei folgendem Code:
int[] arr = new int[3];
arr[3] = 1;
An der Index Position 3 wird der Wert 1 eingetragen.
Es gibt eine ArrayIndexOutOfBoundsException
Der Compiler ignoriert die Zeile, weil der Index 3 nicht existiert.
Keine der Antworten
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
int[][] arr = new int[2][3];
Wie bestimmt man die Länge der zweiten Zeile des Arrays?
arr[1].length
arr[2].length
arr.length
arr[1][1].length
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was wird ausgegeben, wenn man das folgende Array Zeile für Zeile ausgibt?
0 1 2
4 5 6
0 1 2
3 4 5
0 1 2
0 1 2
Keine der Antworten
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was wird ausgegeben?
4
4
3
4
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was wird ausgegeben?
44
01234
01234
01234
0123
0123
0123
Nichts (wegen dem 'break' statement)
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Welchen Rückgabetyp wählt man für eine Klassenmethode (siehe Bild), wenn die Methode nichts zurückgeben soll?
'void'
man lässt den Rückgabetyp weg
'nothing'
keine der Antworten
Similar Resources on Wayground
7 questions
Java arrays
Quiz
•
University
10 questions
Tutorium1
Quiz
•
University
10 questions
Weekly Contest #10 - TechXNinjas
Quiz
•
University
10 questions
Arboles
Quiz
•
University
10 questions
Unit 1 - DSA - AI A
Quiz
•
University
7 questions
PI Taller 5 Quiz
Quiz
•
University
10 questions
Variablen und Vergleiche
Quiz
•
University
10 questions
Quiz 12
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University