
Java Arrays
Computers
KG - University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned by values[5]?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of values.length?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Index values of an array range from ______________.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Create an array of 12 strings called months.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Based on the statement below, which of the following statements gives the length of the data array?
double[ ] data = new double[10];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the error in the following code fragment?
double[ ] data = new double[20];
data[20] = 15.25;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly initializes an array to contain four elements each with value 0?
I. int[ ] arr = { 0, 0, 0, 0};
II. int[ ] arr = new int[4];
III. int[ ] arr = new int[4];
for(int i = 0; i < arr.length; i++)
arr[i] = 0;
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?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
20 questions
Disney Characters
Quiz
•
KG
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
10 questions
Christmas Characters
Quiz
•
KG - 3rd Grade
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Christmas Movies
Quiz
•
KG - 12th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
KG - 3rd Grade