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
10 questions
❄⛄AP CSA - Unit 6 Review

Flashcard
•
9th - 12th Grade
15 questions
Arrays C++- CS 172 Exercise #1

Flashcard
•
8th - 12th Grade
13 questions
java variables 1

Flashcard
•
9th - 12th Grade
15 questions
AP Computer Science A Review 1

Flashcard
•
10th - 12th Grade
12 questions
Java Loops

Flashcard
•
9th - 12th Grade
18 questions
Ripasso c++ - Array - 4BI

Flashcard
•
11th Grade
8 questions
AP CS A Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
13 questions
Unit 5 Flashcard AP CSP

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University