cs

studied byStudied by 3 people
5.0(1)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 22

flashcard set

Earn XP

Description and Tags

23 Terms

1
Iteration
Another word for repetition.
New cards
2
Accumulation
To collect or gather; useful technique in loops.
New cards
3
Nested loop
A loop that will run to completion for each iteration of the outer loop.
New cards
4
sentinel loop
A loop that uses a value or dummy, to indicate the end of data entry.
New cards
5
pseudocode
Literally means "false code". Used as a program design aid.
New cards
6
Index
An integer value used to specify the position of an array element or String character.
New cards
7
array
An ordered collection of similar items. These items are of the same data type, i.e.: int, double, or String.
New cards
8
elements
What the items stored in an array are called.
New cards
9
an initializer list
Creating an array with specific initial values.
New cards
10
immutability
This term is the characteristic of Strings, and the size of arrays, that prevents those data structures from changing.
New cards
11
substring
A string method that returns a subset of a string at the index parameter.
New cards
12
String
This data type can contain any character and have any length.
New cards
13
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).
New cards
14
run - time error
This kind of error occurs while you are executing the program.  It usually causes the program to stop running.
New cards
15
compile error
This error occurs when you are validating the syntax of the program.
New cards
16
concatenation
This term defines the process of combining Strings with other Strings or other data types.
New cards
17
length()
A string method that returns an integer that is the total number of characters in the string.
New cards
18
method
a collection of statements that are grouped together to perform an operation. When you call the System.out.println() it is a method. In other words, it does something. Click here for more informationLinks to an external site.
New cards
19
The length of an array is accessed using the length property. Example: stringArray.length

New cards
20
The length of a String is accessed via a method. Example: str.length() The parentheses at the end indicate it is a method.

New cards
21
0
The "default value" for the array int[] arr \= new int[100];
New cards
22
0.0
The default value for the array double[] arr \= new double[50];
New cards
23
false
The "default value" for the array boolean[] arr \= new boolean[75];
New cards

Explore top notes

note Note
studied byStudied by 7 people
776 days ago
5.0(1)
note Note
studied byStudied by 115 people
889 days ago
4.4(7)
note Note
studied byStudied by 38 people
886 days ago
5.0(1)
note Note
studied byStudied by 12 people
771 days ago
5.0(1)
note Note
studied byStudied by 83 people
641 days ago
5.0(1)
note Note
studied byStudied by 414 people
304 days ago
5.0(1)
note Note
studied byStudied by 5 people
341 days ago
5.0(1)
note Note
studied byStudied by 1361 people
698 days ago
5.0(6)

Explore top flashcards

flashcards Flashcard (110)
studied byStudied by 14 people
644 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 13 people
713 days ago
5.0(1)
flashcards Flashcard (58)
studied byStudied by 2 people
53 days ago
5.0(1)
flashcards Flashcard (457)
studied byStudied by 52 people
747 days ago
5.0(2)
flashcards Flashcard (47)
studied byStudied by 5 people
117 days ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 19 people
294 days ago
4.0(1)
flashcards Flashcard (79)
studied byStudied by 8 people
692 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 135 people
578 days ago
5.0(7)
robot