Module 3: Linked List Flashcards

1
Q

is a series of connected
nodes, where each node is a data
structure.

A

linked list

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

can grow or shrink in

size as the program runs

A

linked list

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

Insertion and deletion of nodes is

quicker with X than with Y

A

linked lists

vectors.

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

each node in a linked list contains one or mode members that represent X and also a Y

A

data

pointer

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

linked list is called “linked” because each
node in the series has a X that points to
the next node in the list.

A

pointer

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

in declaring a list, what should you do first

A

declare a data structure that will be

used for the nodes.

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

head pointer is declared as a X

A

global variable

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

head
is automatically initialized to X, which
indicates that the list is Y

A

0 (NULL)

empty.

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