1/13
These flashcards cover key terms and concepts related to arrays and their utilization in programming, focusing on definitions and applications.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Array
A data structure that stores a collection of related data items of the same type.
Index
An integer value that specifies the position of an element in an array.
Upper Bound
The last index that can be accessed in an array, which may exclude the index itself depending on the programming language.
Element
An individual item stored within an array.
For Loop
A control flow statement that allows code to be executed repeatedly based on a condition.
Loop Control Variable (LCV)
A variable used to control the number of times a loop executes.
Continuous Memory
Memory requirement for arrays such that all elements must be stored in consecutive memory locations.
Modulus Operator (%)
An operator that returns the remainder of a division operation, useful for determining if a number is even or odd.
Data Structure
A method of organizing and storing data that enables efficient access and modification.
Function
A block of code that performs a specific task and can be reused in a program.
Hard Coding
The practice of embedding input values directly into the source code instead of obtaining them from user input.
Even Numbers
Integers divisible by two without a remainder.
Odd Numbers
Integers not divisible by two, leaving a remainder of one.
Simulation
A method for modeling the behavior of a system using programming to evaluate potential outcomes.