Unit 6: Arrays Flashcards

1
Q

2-D Arrays

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Accessing Elements in Arrays

A

Refers to retrieving or obtaining the value stored at a specific index position within an array.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Array Algorithms

A

Step-by-step procedures designed specifically for manipulating or processing arrays efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Array Creation and Access

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ArrayIndexOutOfBoundsException

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Arrays

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Average

A

Also known as the mean, is calculated by dividing the sum of a set of numbers by how many numbers are in that set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Consecutive Pairs of Elements

A

Refers to two adjacent elements in a sequence or array.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Data Structures

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Default Values

A

This term refers to the initial values automatically assigned by Java if no explicit value is provided for variables during declaration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Developing Algorithms Using Arrays

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Enhanced For Loop (For-each Loop)

A

A simplified loop structure introduced in Java that allows easy iteration over arrays or collections without explicitly managing an index or iterator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Exam Weighting

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

For Loop

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

FRQ

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Mode

A

Refers to the value that appears most frequently in a set of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

NullPointerException

A

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”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Object

A

An instance of a class that represents a specific entity or thing in a program. It contains both data (attributes) and behavior (methods).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Rotate

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

sum

A

Refers to the result obtained by adding two or more numbers together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Traverse an Array

A

To visit each element in the array, usually in order, to perform some operation on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Traversing Arrays

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

ArrayLists

A

Dynamic arrays that can grow and shrink dynamically as needed. They provide resizable arrays with additional methods for easy manipulation and management.

24
Q

arrayName.length

A

This property is used to determine the number of elements in an array.

25
Q

arrayName[index]

A

The syntax used in programming languages to access a specific element within an array. “arrayName” represents the name of the array, and “index” refers to the position of the desired element.

26
Q

Arrays

A

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.

27
Q

Constructor

A

A special method within a class that is used to initialize objects of that class. It is called automatically when an object is created and helps set initial values for its attributes.

28
Q

fixed size

A

Refers to a data structure or container whose size cannot be changed once it is created. Once initialized with a specific capacity or length, no additional elements can be added or removed from it.

29
Q

For Loops

A

Control structures used for repetitive execution of code blocks. They consist of an initialization statement, condition statement, increment/decrement statement, and loop body. The loop continues until the condition becomes false.

30
Q

Primitive data type

A

Basic data types provided by programming languages, such as integers, floating-point numbers, booleans, and characters. They represent simple values and have predefined characteristics.

31
Q

Reference Data Type

A

A data type that refers to an object in memory rather than directly storing the value. It stores the memory address where the object is located.

32
Q

Zero-indexed language

A

In computer programming, this refers to systems where counting starts from 0 instead of 1 when accessing elements in an ordered collection (e.g., arrays).

33
Q

import java.util.Arrays;

A

A statement in Java that allows you to access the functionality of the Arrays class from the java.util package. It is used to import specific classes or entire packages into your program.

34
Q

array.length

A

This property is an array refers to the number of elements it contains.

35
Q

Limited Traversal

A

Refers to the process of accessing only a portion of a data structure, such as an array or list, instead of traversing through the entire structure. It allows for efficient retrieval and manipulation of specific elements within the data structure.

36
Q

Reverse Traversal

A

Accessing elements in reverse order, starting from the last element and moving towards the first element in a collection or data structure.

37
Q

Subsection

A

A smaller part or division of a larger section. In programming, it refers to breaking down a complex problem into smaller, more manageable parts.

38
Q

Traversing

A

Refers to the process of accessing each element in a data structure, such as an array or linked list, and performing some operation on it.

39
Q

while loop

A

A control flow statement that allows a block of code to be executed repeatedly as long as a specified condition is true.

40
Q

Enhanced For Loop

A

Also known as a foreach loop, it is a simplified way to iterate over elements in an array or collection. It automatically handles indexing and provides an easy way to access each element without explicitly using indices.

41
Q

Mutator Methods

A

Special types of methods in object-oriented programming that allow modification or mutation of an object’s attributes or properties.

42
Q

Pass-by-value

A

The method of passing arguments to functions or methods by creating copies of their values instead of directly passing references to them.

43
Q

Traverse

A

Refers to the process of accessing each element in a data structure (such as arrays or linked lists) one by one, usually for performing some operation on them.

44
Q

Algorithm

A

Step-by-step procedures or instructions designed to solve specific problems or perform specific tasks.

45
Q

Array

A

A fixed-size collection of elements of the same type stored in contiguous memory locations. It allows efficient access to individual elements using an index.

46
Q

duplicates

A

Elements or values that appear more than once in a collection, such as an array or list.

47
Q

evenFrequency

A

Refers to the occurrence of an element in a list or array that appears an equal number of times as other elements. In other words, every element with even frequency occurs the same number of times.

48
Q

isEven

A

A boolean function that determines whether a given number is divisible by 2 without leaving a remainder.

49
Q

Maximum

A

Refers to the largest value in a set of numbers or the highest point on a graph.

50
Q

mean

A

Mean, also known as average, is calculated by adding up all values in a set and dividing it by the total number of values.

51
Q

minValue

A

Refers to the smallest value in a set of numbers or data.

52
Q

returnAllConsecutiveSequences

A

A function that takes an array as input and returns all consecutive sequences (subarrays) within it.

53
Q

Reverse

A

To change the order of its characters, so that the last character becomes the first, the second-to-last becomes the second, and so on.

54
Q

shiftLeft

A

Shift left refers to moving all elements in a list or array towards the left by one position. The first element becomes the last element after shifting left.

55
Q

shiftRight

A

Shift right refers to moving all elements in a list or array towards the right by one position. The last element becomes the first element after shifting right.

56
Q

sum

A

Sum refers to the result obtained by adding two or more numbers together.

57
Q

Traversals

A

Traversals refer to the process of visiting and accessing each element in a data structure, such as a tree or graph, exactly once.