Which of the following is FALSE about arrays on Java: A java array is always an object; Arrays in Java are always initialized to have values of 0; Length of array can be changed after creation of array
Unit 6 Test Review - Arrays

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Length of array can be changed after creation of array
2.
FLASHCARD QUESTION
Front
Find the output
class Test {
public static void main(String args[]) {
int arr[2];
System.out.println(arr[0]);
System.out.println(arr[1]);
}
}
Back
Compile error
3.
FLASHCARD QUESTION
Front
Find the output
class Test {
public static void main(String args[]) {
int [] arr = new int[2];
System.out.println(arr[0]);
System.out.println(arr[1]);
}
}
Back
0
0
4.
FLASHCARD QUESTION
Front
What is the length of the following array: int [] data = { 12, 34, 9, 0, -62, 88 };
Back
6
5.
FLASHCARD QUESTION
Front
What will happen when executing the following code?
class Demo1 { public static void main(String args[]) { int [] i = new int[10]; System.out.println(i[10]); } }
Back
Out-of-bounds exception
6.
FLASHCARD QUESTION
Front
_________________ is a collection of elements used to store the same type of data.
Back
Array
7.
FLASHCARD QUESTION
Front
What are the legal indexes for the array ar
, given the following declaration:
int[] ar = {2, 4, 6, 8 }?
Back
0, 1, 2, 3
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Arrays in Java

Flashcard
•
9th - 12th Grade
14 questions
Javascript Control Structures Practice

Flashcard
•
9th - 12th Grade
15 questions
Java - Flow of Control Flashcard

Flashcard
•
9th - 12th Grade
16 questions
Loops Flashcard

Flashcard
•
9th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
18 questions
Java Arrays

Flashcard
•
9th - 12th Grade
21 questions
C.P. - Flashcard #2 - Review

Flashcard
•
9th - 12th Grade
18 questions
AP CSA Unit 1 Review

Flashcard
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade