Unit 3: Arrays and Algorithms - Vocabulary Flashcards


Set Details Share
created 1 year ago by AMAC0672
2 views
This set contains all of the vocabulary terms found within Unit 3: Arrays and Algorithms.
updated 1 year ago by AMAC0672
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:

1

Data Structure

A structure for organizing, processing, retrieving, and storing data

2

Element

A single value or object in a data structure

3

Immutable

An object whose state cannot be modified after it is created

4

Index

An integer value that indicates the position of a value in a data structure

5

Initializer List

A comma-separated list of values or objects for an array given inside curly braces

6

One-Dimensional (1D) Array

A data structure that holds multiple values of the same data type

7

ArrayIndexOutOfBoundsException

An error that occurs when attempting to access an index that is negative, greater than, or equal to the size of the array

8

For Loop

A loop used to repeat a block of code a known number of times

9

Decrement

To decrease a value by one

10

Increment

To increase a value by one

11

Loop Control Variable

A variable that is changed by a constant value and determines the end of a loop

12

Traverse

To access elements in a data structure one by one

13

Postcondition

A condition that must always be true just after the execution of a code segment

14

Precondition

A condition that must always be true just before the execution of a code segment

15

Enhanced For Loop

A loop for traversing an array from the first element to the last

16

Constant

A variable whose value cannot be changed once it has been assigned

17

Static Variable

A variable that is shared by all instances of a class

18

Polymorphism

The ability of an object to perform an action in different ways

19

Text File

A file that contains letters, numbers, and/or symbols but has no special formatting

20

Off-By-One Error

An error that occurs when we try to access an index value that is greater than the length of the array

21

Nested Loop

A loop inside of another loop