
Java Arrays
Authored by Jennifer DiPietro
Computers
KG - University
Used 609+ 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
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
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade