Loops_and_Arrays Flashcards
Array
Is a data structure consisting of a series of values of the same data type that are held together in a wrapper and can be treated as a single thing.
Arrays implementation
An array is created using the new keyword and they are a fixed size. The number of items the array will contain must be set when the array is created and cannot be changed after it is set.
Array Elements
Elements are the values of an Array.
Variable Scope
Defines a part of a program, where the variable is valid or can be referenced. When code execution reaches a point where the variable can no longer be referenced, then the variable is out of scope.
Loop
Is a programming structure that repeats a sequence of instructions until a specific condition is met.
Array Indexes
An index is a numeric value that starts at 0 and provides a way to identify a specific element in the array.