Arrays Flashcards
________ store values, but typically only ________ at a time.
Variables, one value
_____ allow you to ______ a variable _______ efficiently.
Loops, reuse, multiple times
A ________ is a way of organizing and storing data so that it can be ________ and ________ efficiently.
data structure, accessed, modified
What are the common Data structures? (name 6 common structures)
arrays, linked lists, stacks, queues, hash tables, trees
______ in Java are _______(consisting of parts all of the same kind.)
Arrays, homogeneous
Arrays store ________ values of a specific _______ and provide _________ to store the same.
one or more, data type, indexed access
A specific ________ in an array is accessed by its ______.
element, index
______ offer a convenient means of ________
related information.
Arrays, grouping
An ______ in an array is a ______ value stored at a
particular position. Each element shares the same
_______ as the array.
element, single, data type
What is the plural form of index?
Indices
What is an index?
An index is the position of an element inside an array.
A _________ is the _______ address in computer memory (RAM) where an array stores its ________.
memory location, physical, elements
What happens when an array is created?
Java allocates a continuous block of memory to store its values.
Arrays in Java are ______ types, meaning the variable holds a ________ (not actual values).
reference, memory address
The _______ is the total ______ of elements stored in an array. In Java, we use .length to get the size of the array.
array length, number
What are the parts of array?(refer to the anatomy of an array)
name of the array list, indexes, array objects with index positions, value of the list, address of the list, memory address
What are the 3 main types of Arrays?
Single Dimensional Array, Double Dimensional Array, Multi-Dimensional Array
This array contains one or more arrays, allowing you to store data in a structured, tabular, or grid-like format, like a table with rows and columns
Multi-Dimensional Arrays
This Array is a ____ dimensional array can be visualized as a table or a matrix. It contains rows and columns.
Double Dimensional Arrays
This is an Array where you can imagine a ____ Dimensional Arrays as a row, where elements are stored one after another.
Single Dimensional Arrays
What is the first step you will do in declaration and initialization?
you must declare a variable of the desired array type
What is the second step you will do in declaration and initialization?
you must allocate the memory that will hold the array, using new, and assign it to the array variable.
Identify the parts(the ones inside the parenthesis) of this syntax: (int) a = new int ([5]);
data type, size of array
Each element is initialized to a _______, a process known as _________.
default value, auto-initialization