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
25 questions
Python Data Types

Flashcard
•
9th - 12th Grade
18 questions
Intro to Python Project Stem Unit 8 Vocab Flashcards

Flashcard
•
9th - 12th Grade
25 questions
JavaScript Console & Graphics Review

Flashcard
•
9th - 12th Grade
30 questions
AP CSA Unit 2 Review

Flashcard
•
10th - 12th Grade
23 questions
Array & ArrayList Review

Flashcard
•
10th - 12th Grade
18 questions
Java Arrays

Flashcard
•
9th - 12th Grade
24 questions
Java String class methods

Flashcard
•
10th - 12th Grade
23 questions
Intro to Algorithms

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th 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
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade