COMS 250: Exam 3: Linked Lists

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Get a hint
Hint

ADT stands for:

Get a hint
Hint

Abstract Data Type

Get a hint
Hint

A linked list is a series of connected_________.

Get a hint
Hint

nodes

Card Sorting

1/17

Anonymous user
Anonymous user
encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

ADT stands for:

Abstract Data Type

2
New cards

A linked list is a series of connected_________.

nodes

3
New cards

The ______ of a linked list points to the first node in the list.

head pointer or head

4
New cards

To append a node to a list means to ______.

add a node to the end of ithe list

5
New cards

The process of moving through a linked list is referred to as _________.

Traversing

6
New cards

If the head pointer points to nullptr, this indicates _______.

there are no nodes in the list

7
New cards

An insertion or deletion routine requires that you create this many pointers for use during the traversal process.

Two — one for the node being inserted, and one for the previous node.

8
New cards

How many steps are involved in the process of deleting a node?

two — remove the node without breaking links, then delete it from memory.

9
New cards

Appending a node means adding it to the end of a list, and ______ a node means putting a new node in the list, but not necessarily at the end.

inserting

10
New cards

If new data needs to be added to a linked list, the program simply ______ and inserts it into the series.

allocates another node

11
New cards

The advantage a linked list has over a vector is:

A node can be inserted into or removed from a linked list faster than from a vectorbecause linked lists can adjust pointers dynamically.

12
New cards

To create a linked list, you must first create a(n) __________.

struct

13
New cards

Which of the following is a basic linked list operation?

appending a node, traversing the list, inserting, or deleting a node

14
New cards

The last node in a linked list points to

a null pointer

15
New cards

A ______ is used to travel through a linked list and search for data.

pointer

16
New cards

While traversing a list, a node pointer knows when it has reached the end of a list when:

it encounters a null pointer

17
New cards

A linked list class must take care of removing the dynamically allocated nodes. This is done by _______.

the destructor function

18
New cards

To insert a new node in ascending order into a list, the list must be:

arranged in ascending order