AP CSA Unit 6: Array

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/7

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

Array

Arrays are lists that store many values of the same type

2
New cards

Index

Array values are stored at a particular index and we access elements in the array by referencing this index value. Index values in Arrays start a 0.

3
New cards

array.length

Returns the length of the array

4
New cards

array[index]

Accesses an element in the array to either update or retrieve.

5
New cards

Traversing an Array

Traversing an array is the process to loop through an array and access each of the elements. Caution must be taken to avoid looping beyond the valid index values.

6
New cards

Enhanced For Loop

A loop that is an alternate to a for or while loop that accesses each value in an array starting at the first value and proceeding in order.

7
New cards

Enhanced For Loop Variable

Variable created in the enhanced for loop header that contains a copy of the array variable.

8
New cards

Common Array Algorithms

Algorithms that are often used in computer science to do basic analysis on a list. These often include traversing and selection processing.