Which of the following is FALSE about arrays on Java

APCSA Unit 6 Review Arrays

Quiz
•
Computers
•
10th - 12th Grade
•
Easy
Lindsay Schwisow
Used 388+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A java array is an object
Length of array can be changed after creation of array
Numerical data types of arrays are initialized to 0 to start
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output
class Test {
public static void main(String args[]) {
int arr[2];
System.out.println(arr[0]);
System.out.println(arr[1]);
}
}
Compile error
Exception
Garbage Value
Garbage Value
0
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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]);
}
}
Compile error
Exception
Garbage Value
Garbage Value
0
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the length of the following array: int [] data = { 12, 34, 9, 0, -62, 88 };
1
5
6
12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of following Java program?
class Test{
public static void main (String[] args) {
int [] arr1 = {1, 2, 3};
int [] arr2 = {1, 2, 3};
if (arr1 == arr2)
System.out.println("Same");
else
System.out.println("Not same");
}}
Same
Not same
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the indexes for the array ar, given the following declaration:
int[] ar = {2, 4, 6, 8 }
0, 1, 2, 3
1, 2, 3, 4
0, 2, 4, 6
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
while and do while Loop

Quiz
•
10th Grade
10 questions
C Programming - Dia Aberto - EPC

Quiz
•
9th - 12th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
15 questions
Java Math

Quiz
•
9th - 12th Grade
10 questions
Study Guide - More Advanced Java

Quiz
•
11th - 12th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
10 questions
AP CS A Unit 6 Quiz PRACTICE

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade