
ArraysMalmoOrebro
Authored by Adam Thelin
Other
KG
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket exception får vi om vi försöker gå utanför ett arrays längd?
OutOfOrderException
OutOfOatsException
ArrayIndexOutOfBoundsException
ArrayIndexOutOfBaconException
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kan vi öka storleken på ett array efter att det initierats?
Ja
Nej
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int[] myArray = new int[5];
System.out.println(myArray.length);
Vad får vi för utskrift?
4
5
6
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int[] myArray = new int[5];
System.out.println(myArray[5]);
Vad får vi för utskrift nu?
Error
5
4
6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int[] myArray = new int[]{1,3,5,2,7};
System.out.println(myArray[1]);
Vad kommer skrivas ut nu?
0
1
5
3
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String input = "Det är vinter! Inte sommar:).";
String[] myArray = input.split(" ");
System.out.println(myArray[0] + " " + myArray[1] + " " + myArray[4]);
Vad får vi ut?
Det är vinter!
Det är sommar:).
Det är inte sommar:).
Error
7.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
String input = "Dinosaurie med Disposition";
char[] expected = input.toCharArray();
System.out.println(String.valueOf(expected[0]) +
String.valueOf(expected[8]) +
String.valueOf(expected[19]));
Vad får vi för värde i expected?
(a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?