Unit 6: Arrays Flashcards
2-D Arrays
Rectangular grids or matrices consisting of rows and columns. They allow for storing and accessing elements using two indices - one for row number and another for column number.
Accessing Elements in Arrays
Refers to retrieving or obtaining the value stored at a specific index position within an array.
Array Algorithms
Step-by-step procedures designed specifically for manipulating or processing arrays efficiently.
Array Creation and Access
Refers to the process of creating an array, which is a container object that holds a fixed number of elements of the same type, and accessing its individual elements by their index positions.
ArrayIndexOutOfBoundsException
An exception that occurs when trying to access an invalid index position in an array. It is thrown to indicate that the index used to access an array is either negative or greater than or equal to the size of the array.
Arrays
Are a collection of elements of the same data type, stored in contiguous memory locations. They have a fixed size and can be accessed using an index.
Average
Also known as the mean, is calculated by dividing the sum of a set of numbers by how many numbers are in that set.
Consecutive Pairs of Elements
Refers to two adjacent elements in a sequence or array.
Data Structures
Data structures are ways to organize, store, and manipulate data efficiently. They provide different methods of accessing, inserting, deleting, or searching for data elements based on specific requirements.
Default Values
This term refers to the initial values automatically assigned by Java if no explicit value is provided for variables during declaration.
Developing Algorithms Using Arrays
Refers to the process of creating step-by-step instructions to solve a problem or perform a task, specifically using arrays as a data structure. It involves breaking down complex problems into smaller, manageable steps and utilizing array operations to manipulate and access data efficiently.
Enhanced For Loop (For-each Loop)
A simplified loop structure introduced in Java that allows easy iteration over arrays or collections without explicitly managing an index or iterator.
Exam Weighting
Refers to the allocation of points or marks given to each section or topic in an exam. It determines how much each part contributes to the overall score.
For Loop
A control flow statement that allows you to repeatedly execute a block of code for a specified number of times or until certain conditions are met.
FRQ
It is a type of question commonly found in AP Computer Science A exams where students are required to write code or provide detailed explanations without multiple-choice options.
Mode
Refers to the value that appears most frequently in a set of data.
NullPointerException
An exception that occurs when a program tries to access or use an object that has not been initialized, meaning it is currently set to “null”.
Object
An instance of a class that represents a specific entity or thing in a program. It contains both data (attributes) and behavior (methods).
Rotate
Refers to the action of shifting the order of elements either to the left or right. It is like rearranging a line of people by moving them in a circular motion.
sum
Refers to the result obtained by adding two or more numbers together.
Traverse an Array
To visit each element in the array, usually in order, to perform some operation on it.
Traversing Arrays
Refers to the process of accessing and examining each element in an array. It allows you to perform operations on every element or search for specific values within the array.