APCS A - Array 6.1,6.2,6.3,6.

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

30 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the correct way to declare an array in Java? Options: int arr[] = new int[5];, int arr() = new int[5];, int arr = new int[5];, array int arr = new int[5];, int[5] arr;
Back
int arr[] = new int[5];
2.
FLASHCARD QUESTION
Front
What is the default value of an int array element in Java?
Back
0
3.
FLASHCARD QUESTION
Front
How do you get the length of an array arr in Java?
Back
arr.length
4.
FLASHCARD QUESTION
Front
What will arr[arr.length - 1] return?
Back
The last element
5.
FLASHCARD QUESTION
Front
Which exception is thrown for accessing an array index out of bounds? Options: IndexOutOfRangeException, OutOfMemoryError, NullPointerException, ArrayIndexOutOfBoundsException, IllegalArgumentException
Back
ArrayIndexOutOfBoundsException
6.
FLASHCARD QUESTION
Front
What is the index of the first element in an array?
Back
0
7.
FLASHCARD QUESTION
Front
Which of the following creates a 2D array? int arr[][] = new int[2][3];, int arr[] = new int[2,3];, int arr[2][3];, int arr = int[2][3];, int[][] arr = {2,3};
Back
int arr[][] = new int[2][3];
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
Intro to Algorithms

Flashcard
•
9th - 12th Grade
20 questions
CodeHS Python Unit 3 Flashcard Review

Flashcard
•
9th - 12th Grade
20 questions
Unit 6 Test Review - Arrays

Flashcard
•
9th - 12th Grade
21 questions
Data Structures

Flashcard
•
9th - 12th Grade
28 questions
Units 1 to 6: Mock Exam Final - AP Computer Science A

Flashcard
•
9th - 12th Grade
19 questions
Java 2D Arrays_Review

Flashcard
•
11th Grade
20 questions
Arrays in Java

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

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade