Final Exam Flashcards

1
Q

What is a linked list

A

A linked chain of dynamically allocated data structures

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

Data structures that contain pointers to The same structure is called

A

Self – referential will datatypes

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

Term for the “Next” pointer is

A

Successor pointer

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

The process of beginning at the head of a listing going through the entire list while doing some processing at each node is called

A

Traversing the list

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

what signifies the end of a linked list

A

the last “next” pointer is pointing to NULL

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

basic linked list operations (linked list “Big 4”)

A

adding elements, removing elements, traversing the list, and destroying the list

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

one condition that MUST be checked before performing operations on a linked list

A

is the list empty (i.e. does head point to NULL)

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

a data structure that stores and retrieves items FILO/LIFO

A

stack

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

a data structure that stores and retrieves items FIFO/LILO

A

queue

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

to insert an element at rear of queue

A

enqueue

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

to remove an element from front of a queue

A

dequeue

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

when used for searching, binary trees are called

A

BSTs Binary Search Trees

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

even if a function is void, you can still

A

return;

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