Unit 5

5.0(1)
studied byStudied by 12 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/32

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

33 Terms

1
New cards
IndexOutOfBoundsException
________- A run- time exception that occurs when the index used is outside the bounds of the array, either too small (less than zero) or too large (greater than or equal to the length of the array)
2
New cards
Elements
________- What the items stored in an array are called.
3
New cards
Length
________)- (A string method that returns an integer that is the total number of characters in the string.
4
New cards
Immutability
________- This term is the characteristic of Strings, and the size of arrays, that prevents those data structures from changing.
5
New cards
initializer list
A(n) ________- Creating an array with specific initial values.
6
New cards
Index
________- An integer value used to specify the position of an array element or String character.
7
New cards
Concatenation
________- This term defines the process of combining Strings with other Strings or other data types.
8
New cards
Pseudocode
________- Literally means "false code.
9
New cards
length of an array
The ________ is accessed using the length property.
10
New cards
False
The "default value "for the array boolean\[\] arr = new boolean \[75\];
11
New cards
Method
________- a collection of statements that are grouped together to perform an operation.
12
New cards
length of a String
The ________ is accessed via a method.
13
New cards
Iteration
Another word for repetition
14
New cards
Accumulation
To collect or gather; useful technique in loops
15
New cards
Nested loop
A loop that will run to completion for each iteration of the outer loop
16
New cards
sentinel loop
A loop that uses a value or dummy, to indicate the end of data entry
17
New cards
pseudocode
Literally means "false code"
18
New cards
Index
An integer value used to specify the position of an array element or String character
19
New cards
array
An ordered collection of similar items
20
New cards
elements
What the items stored in an array are called
21
New cards
an initializer list
Creating an array with specific initial values
22
New cards
immutability
This term is the characteristic of Strings, and the size of arrays, that prevents those data structures from changing
23
New cards
substring
A string method that returns a subset of a string at the index parameter
24
New cards
String
This data type can contain any character and have any length
25
New cards
IndexOutOfBoundsException  
A run-time exception that occurs when the index used is outside the bounds of the array, either too small (less than zero) or too large (greater than or equal to the length of the array)
26
New cards
run-time error
This kind of error occurs while you are executing the program
27
New cards
compile error
 This error occurs when you are validating the syntax of the program
28
New cards
concatenation
This term defines the process of combining Strings with other Strings or other data types
29
New cards
method
a collection of statements that are grouped together to perform an operation
30
New cards
True
The parentheses at the end indicate it is a method
31
New cards
0
The "default value" for the array int[] arr = new int[100];
32
New cards
0.0
The default value for the array double[] arr = new double[50];
33
New cards
false
The "default value" for the array boolean[] arr = new boolean[75];