Data Structures Fundamentals
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
30 questions
- 1Computer scientists use_____to organize data, allowing it to be easily retrieved and read.
Hint
Think about the fundamental way data is organized in computer memory to make it accessible.
Answer
Data Structures
- 2Arrays, also known as lists or vectors in some languages, are a series of values stored in_____.
Hint
Where do computers fundamentally store all information?
Answer
memory
- 3To find a particular value in an array, one must specify an_____.
Hint
This numerical identifier tells you the position of an element within a sequence.
Answer
index
- 4Almost all programming languages start arrays at index_____.
Hint
Consider the typical starting number for counting positions in computer science lists.
Answer
0
- 5Array access is typically denoted using_____bracket syntax in programming languages.
Hint
Think about the common punctuation mark used to enclose an index when accessing an array element.
Answer
square
- 6If an array is stored at memory location 1,000, retrieving 'j index of 5' involves an offset of_____from that base address.
Hint
The index directly corresponds to the number of positions away from the starting memory location.
Answer
5
- 7The number at index 5 is the_____number in an array that starts at index 0.
Hint
Remember that 0-based indexing means the first item is not '1st' in terms of index.
Answer
6th
- 8Strings are essentially arrays of_____.
Hint
What are the individual components that make up text?
Answer
characters
- 9In memory, a string often ends with a_____character, which is the binary value 0.
Hint
This special character signifies the termination of a string, allowing functions to know when to stop processing.
Answer
null
- 10A function like 'print quote' needs the null character to know when to_____printing the string.
Hint
Without a clear end marker, what would happen if a function kept processing memory?
Answer
stop
- 11The_____
strcatfunction is used for string, which copies one string to the end of another.Hint
What is the term for joining two strings together?
Answer
concatenation
- 12A_____can be thought of as an array of arrays, useful for two-dimensional data.
Hint
Consider a data structure that organizes elements in rows and columns, like a spreadsheet.
Answer
Matrix
- 13To access a value in a matrix, you typically need to specify_____indexes.
Hint
How many coordinates do you need to pinpoint an item in a grid or spreadsheet?
Answer
two
- 14Groups of related variables, such as an account number and its balance, can be bundled together into a_____.
Hint
This data type allows you to create custom bundles of different data types under a single name.
Answer
Struct
- 15Unlike an array, an array of structs gets created at a_____size that cannot be enlarged.
Hint
Arrays, whether of simple values or structs, generally have a predetermined capacity.
Answer
fixed
- 16A_____
nodestruct in a linked list stores a variable and also athat points to a location in memory.Hint
This special variable holds a memory address, allowing connection to other data elements.
Answer
pointer
- 17A_____is a flexible data structure that can store many nodes by having each node point to the next node in the list.
Hint
This structure connects elements sequentially using references to memory locations.
Answer
linked list
- 18A linked list can be terminated by using a next pointer value of_____, also known as the null value.
Hint
This specific value typically indicates the absence of a further memory address to point to.
Answer
0
- 19Unlike an array, whose size has to be pre-defined, linked lists can be dynamically extended or_____.
Hint
What is the opposite action of making something longer?
Answer
shortened
- 20The First-In First-Out (FIFO) behavior is characteristic of a_____data structure.
Hint
Think of a line where the first person to arrive is the first to be served.
Answer
queue
- 21Stacks exhibit Last-In First-Out (LIFO) behavior, similar to a stack of_____.
Hint
Imagine a common breakfast food item where you add to the top and take from the top.
Answer
pancakes
- 22By updating a node struct to contain two pointers instead of one, one can build_____data structures.
Hint
This hierarchical data structure commonly uses multiple pointers from a node to its dependents.
Answer
trees
- 23The topmost node in a tree data structure is called the_____.
Hint
Think about the foundational part of a natural tree.
Answer
root
- 24Nodes that hang from other nodes in a tree are called_____nodes.
Hint
Consider the familial relationship used to describe nodes descending from others.
Answer
children
- 25Nodes above children nodes in a tree are called_____nodes.
Hint
What is the inverse familial relationship to 'children'?
Answer
parent
- 26Any nodes that have no children and where the tree ends are called_____nodes.
Hint
Think about the extremities of a natural tree.
Answer
Leaf
- 27If nodes in a tree can have up to two children, the data structure is called a_____tree.
Hint
The prefix indicates the maximum number of branches from each point.
Answer
binary
- 28For data that links arbitrarily and includes things like loops, a_____data structure is used instead of a tree.
Hint
This structure is characterized by nodes connected by edges, allowing for complex, non-hierarchical relationships.
Answer
graph
- 29The_____choice of data structure can significantly simplify programming tasks for particular computations.
Hint
Consider the importance of selecting the most appropriate tool for a given job.
Answer
right
- 30Many programming languages provide_____packed with ready-made data structures, like C++'s Standard Template Library.
Hint
These collections of pre-written code offer common functionalities.
Answer
libraries

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