APCS A - Array 6.1,6.2,6.3,6.
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Wayground Content
Used 1+ times
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];
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?
Similar Resources on Wayground
28 questions
Exploring the Integumentary System
Flashcard
•
11th Grade
20 questions
H Chem Enthalpy
Flashcard
•
KG
22 questions
Alan Turing
Flashcard
•
9th - 12th Grade
32 questions
Conditional Statements and Loops in Pseudocode
Flashcard
•
9th Grade - University
20 questions
Progressive Era Pre-Test Review
Flashcard
•
11th Grade
23 questions
Vocabulary Flashcards
Flashcard
•
KG
16 questions
Text Structure
Flashcard
•
9th - 12th Grade
28 questions
AP World History Unit 6 Imperialism
Flashcard
•
10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade