AP CSA Unit 6: Array

studied byStudied by 3 people
0.0(0)
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 / 7

8 Terms

1

Array

Arrays are lists that store many values of the same type

New cards
2

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.

New cards
3

array.length

Returns the length of the array

New cards
4

array[index]

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

New cards
5

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.

New cards
6

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.

New cards
7

Enhanced For Loop Variable

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

New cards
8

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.

New cards
robot