Computer Memory and Arrays
- 81Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
81 questions
- 1Computer memory can be conceptualized as a large line of tiny boxes, with each box holding a fundamental unit of data such as a_____.
Hint
Think of a small standard unit used to store characters and other data.
Answer
byte
- 2The sequential number labeling each memory box is called its_____.
Hint
It identifies the location where data can be read or written.
Answer
address
- 3The two fundamental operations supported by the memory interface are writing data to an address and_____data from an address.
Hint
This operation retrieves information already stored.
Answer
reading
- 4In programming terms, a memory address is essentially an_____into the array representing memory.
Hint
It is the numerical position used to locate an element.
Answer
index
- 5Everything that runs on a computer is built on an underlying array of_____.
Hint
This is the physical storage modeled as boxes with addresses.
Answer
memory
- 6The simplest possible memory implementation is an array containing one_____.
Hint
A single byte of memory can be viewed as one item in an array.
Answer
element
- 7With one byte of memory, a character must be stored at array index_____.
Hint
The first position in a zero-based array has this index.
Answer
zero
- 8The number of possible orderings of a set of elements is described by a mathematical operation called a_____.
Hint
For three distinct elements, this operation gives six possible arrangements.
Answer
factorial
- 9For three distinct elements, the number of possible arrangements is_____.
Hint
Use the factorial of three.
Answer
six
- 10As the number of elements increases, the number of possible orderings increases_____.
Hint
The growth is far faster than a simple linear increase.
Answer
astronomically
- 11To determine whether an unsorted array contains the letter Z, the basic available strategy is to check every element sequentially from address_____.
Hint
Begin at the first array position.
Answer
zero
- 12If characters are sorted in ascending alphabetical order, checking whether Z is present only requires examining the_____element.
Hint
Z would appear at the greatest position in ascending order.
Answer
last
- 13An array has a_____length, unlike an array list whose number of elements can grow.
Hint
Its physical storage cannot automatically change size.
Answer
fixed
- 14An array list is an_____collection of elements that supports reading and writing at arbitrary indexes.
Hint
The elements maintain a sequence or position.
Answer
ordered
- 15The length of the array underlying an array list is called its_____.
Hint
It represents how many elements the backing storage can hold.
Answer
capacity
- 16The number of items currently stored in an array list is called its size or_____.
Hint
It is separate from the backing array's capacity.
Answer
count
- 17When an array list adds an element to its end, it uses the current internal_____as the array index.
Hint
This value indicates the next unused position.
Answer
count
- 18Removing an element from the middle of an array list requires subsequent elements to shift_____by one.
Hint
They move toward lower indexes to fill the hole.
Answer
backwards
- 19Inserting an element into the middle of an array list requires subsequent elements to shift_____by one.
Hint
They move toward higher indexes to create space.
Answer
forwards
- 20Because array elements correspond to physical memory locations, a normal array cannot individually_____an element.
Hint
The physical storage associated with the index cannot simply disappear.
Answer
remove
- 21A stack restricts insertion and deletion to the_____element.
Hint
Think of the accessible top of a vertical pile.
Answer
last
- 22Removing an element from the top of a stack is called_____.
Hint
This operation is the stack counterpart to pushing.
Answer
popping
- 23Adding an element to a stack writes it just past the current last element and increases the_____by one.
Hint
This variable tracks how many items are in the stack.
Answer
count
- 24Popping the last element of a stack is efficient because no subsequent elements need to be_____.
Hint
There are no elements after the final one.
Answer
copied
- 25A common application of a stack is tracking_____changes in a text editor.
Hint
The most recent edit should be reversed first.
Answer
undoable
- 26Redo functionality can be implemented by maintaining a_____stack.
Hint
One stack stores changes to undo, while another stores changes to restore.
Answer
second
- 27Unlike a stack, a queue also allows removal from the_____of the collection.
Hint
This is the end opposite the back where items are added.
Answer
front
- 28Queues process elements in the order in which they are_____.
Hint
The earliest request should be handled first.
Answer
added
- 29A web server can use a queue so that responses are sent in the same order that requests_____.
Hint
Requests enter the system before they are processed.
Answer
came in
- 30In a circular queue, the index of an array access is reduced using the_____operator.
Hint
This operator produces a repeating range of values.
Answer
modulo
- 31When a circular queue reaches the end of its backing array, modulo arithmetic causes the next position to wrap around to_____.
Hint
The array begins at its first index.
Answer
zero
- 32A linked list keeps elements in order by storing a link to the_____element.
Hint
Each item indicates where the next item can be found.
Answer
following
- 33In an array-based linked list, each node stores its data and the array index of the_____user.
Hint
This field creates the connection through the list.
Answer
following
- 34When a new node is appended to the underlying array, updating the previous node's next index creates the_____between them.
Hint
This is the relationship that gives the structure its name.
Answer
link
- 35Inserting a node into a linked list does not require shifting later array elements; instead, the relevant next index_____are updated.
Hint
These stored values determine the chain order.
Answer
fields
- 36A next index of_____indicates that a linked-list node is the final node.
Hint
This special value means there is no following node.
Answer
-1
- 37Linked lists lose efficient access by position because the underlying array index does not necessarily equal the element's_____in the list.
Hint
The linked order can differ from physical storage order.
Answer
position
- 38To find the element at position 300,000 in a naive linked list, one must follow the next index approximately_____times.
Hint
The list must traverse from its beginning to that position.
Answer
300,000
- 39Linked lists provide strong insertion and deletion performance when there is a direct reference to the element_____or after the target.
Hint
Knowing a neighboring node allows its link to be changed directly.
Answer
before
- 40Iterating through a linked list is slower than iterating through an array because linked-list memory access often has poor_____performance.
Hint
Modern processors favor nearby, predictable memory accesses.
Answer
cache
- 41Pointers are essentially an_____into memory at the lowest software level.
Hint
They identify where the referenced data is located.
Answer
index
- 42Memory allocated with_____
newormallocis managed through an internal structure commonly called the.Hint
This area supports dynamic allocation during program execution.
Answer
Heap
- 43A hashmap is also commonly referred to as a_____.
Hint
This structure associates keys with stored values.
Answer
dictionary
- 44Unlike an array, a hashmap uses a nonnumeric value such as a string as a lookup_____.
Hint
The key identifies the value being retrieved.
Answer
key
- 45The function that transforms an arbitrary key such as a string into a number is called a_____function.
Hint
This function gives the hashmap its name.
Answer
hash
- 46Because a hash value may be too large for direct array indexing, it is reduced using the_____operator and the array length.
Hint
This maps a large number into a bounded repeating range.
Answer
modulo
- 47Modulo mapping converts a hash value into an index from zero through the array length_____one.
Hint
The largest valid zero-based index is one less than the length.
Answer
minus
- 48When two different keys produce the same hashmap index, the situation is called a_____.
Hint
Two keys have arrived at the same storage location.
Answer
collision
- 49In one collision-resolution method, the hashmap searches_____through the array until it finds an empty slot.
Hint
The search proceeds toward increasing indexes.
Answer
forwards
- 50A hashmap using forward scanning must store identifying information such as the_____name to verify that a found item matches the requested key.
Hint
The example uses flower names as string keys.
Answer
flower
- 51Long consecutive runs of stored elements created by collision handling are called_____.
Hint
The term describes groups of nearby occupied positions.
Answer
clusters
- 52An alternative hashmap implementation stores collision items in a linked list maintained across a second_____.
Hint
The first array stores the initial item for each hash, while another stores collisions.
Answer
array
- 53A useful linked-list property is that multiple separate linked lists can be interleaved in the same_____.
Hint
The links, rather than physical adjacency, preserve each list's order.
Answer
array
- 54A data structure is fundamentally a strategy for finding something in an_____.
Hint
All low-level data access eventually identifies a position in memory.
Answer
array
- 55The first half of a data structure consists of the particular_____of elements in its underlying array.
Hint
It describes how elements are arranged or related in storage.
Answer
ordering
- 56The second half of a data structure is the_____used to perform operations such as finding, inserting, and removing elements.
Hint
It determines how the arrangement is accessed and changed.
Answer
logic
- 57A sorted array is an example of a data structure whose elements are ordered according to their_____.
Hint
Characters can be ordered alphabetically based on the values stored in them.
Answer
data
- 58Composite objects such as users can be sorted using a subfield such as the user's_____.
Hint
This field can uniquely identify a user.
Answer
ID
- 59To look up users by both name and ID, a program can maintain multiple arrays of_____into the actual user array.
Hint
These values indicate where the real objects are stored.
Answer
indexes
- 60In the multi-array user example, the index arrays function as_____to the user objects.
Hint
They tell the program where the actual object can be found.
Answer
pointers
- 61The best data-structure choice depends on the actual data and the expected patterns of_____.
Hint
Consider how the program will read, insert, and remove information.
Answer
access
- 62A tree is a structure in which relationships between nodes generally proceed in one direction from_____to bottom.
Hint
The upper node is the parent and the lower node is the child.
Answer
top
- 63Each element in a tree is called a_____.
Hint
It represents an individual item in the hierarchy.
Answer
node
- 64The upper node in a tree relationship is called the_____.
Hint
It can have one or more nodes below it.
Answer
parent
- 65The lower node in a tree relationship is called a_____.
Hint
It belongs below a parent in the hierarchy.
Answer
child
- 66In a tree, each child has only one_____, while a parent may have multiple children.
Hint
This is the key asymmetrical constraint distinguishing a tree from a more general graph.
Answer
parent
- 67An array-based tree can store all nodes in one array and their relationships in a second_____.
Hint
The second storage area records child links.
Answer
array
- 68In a two-array tree implementation, each node stores a child_____that points into the relationship array.
Hint
It identifies the first child relationship.
Answer
index
- 69Each tree relationship record stores the index of a child node and the index of the next linked-list item representing the next_____.
Hint
Sibling relationships are connected through this field.
Answer
child
- 70A tree is a constrained version of the more general data structure called a_____.
Hint
The more general structure permits fewer restrictions on relationships.
Answer
graph
- 71If a child is allowed to have multiple parents, the resulting structure is a_____rather than a tree.
Hint
This relaxes the tree's one-parent constraint.
Answer
graph
- 72In graph terminology, the links connecting nodes are called_____.
Hint
They represent connections between vertices or nodes.
Answer
edges
- 73A* is a pathfinding algorithm used to find the_____path between two points.
Hint
It seeks the best route for a character or agent to travel.
Answer
shortest
- 74Graphs can be implemented with two arrays by storing nodes in the first array and_____in the second array.
Hint
The second array records the connections between nodes.
Answer
edges
- 75To traverse a graph in both directions, a duplicate of a vertex may be stored so it is accessible from_____nodes.
Hint
Bidirectional traversal requires access from each endpoint.
Answer
both
- 76A library search system can return directions to a book's stable shelf location, functioning similarly to a_____.
Hint
It does not duplicate the book; it tells you where the original is.
Answer
pointer
- 77Keeping separate indexes sorted by different fields avoids duplicating the entire collection of_____objects.
Hint
The example supports lookup by both user name and user ID.
Answer
user
- 78A list's fast add operation is a special case of insertion at the_____.
Hint
No later elements need to move when adding after the final item.
Answer
end
- 79A stack's pop operation is a special case of removing an element at the_____of a list.
Hint
The stack only removes its top, which is its final stored element.
Answer
end
- 80A queue can reuse a fixed-size array without reallocating, resizing, or copying by treating it as a_____queue.
Hint
Its indexes wrap around from the end back to the beginning.
Answer
circular
- 81When approaching a new programming problem, a useful strategy is to start with just an_____and see how far it can be pushed.
Hint
The content emphasizes this as the foundation of every higher-level structure.
Answer
array

Ask anything
We've read this whole study set, so questions about it get the best answers.