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

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground 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
18 questions
Ripasso c++ - Array - 4BI

Flashcard
•
11th Grade
30 questions
AP CSA Exam Review 2019

Flashcard
•
10th Grade - University
30 questions
Одновимірні масиви ІІ семестр

Flashcard
•
11th Grade
20 questions
Basic Programming Concepts in C++ Language

Flashcard
•
KG
30 questions
Unit 4 Review

Flashcard
•
9th - 12th Grade
10 questions
❄⛄AP CSA - Unit 6 Review

Flashcard
•
9th - 12th Grade
15 questions
LT.6: Students find x- and y-intercepts algebraically

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade