Lesson 2.3: Stacks Flashcards

1
Q

A linear data structure that can be accessed only at one of its ends for storing and retrieving data.

A

Stack

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

A Stack if called a LIFO Structure. LIFO stands for?

A

Last In, First Out.

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

It is an abstract data type that provides an ordered and linear sequence of items.

A

Stack

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

A Stack follows a _________ structure.

A

First in, Last out (FILO) or Last In, First Out (LIFO)

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

Clear the stack.

A

clear()

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

Check to see if the stack is empty.

A

isEmpty()

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

Put the element el on the top of the stack.

A

push(el)

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

Take the topmost element from the stack.

A

pop()

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

Return the topmost element in the stack without removing it.

A

topEl()

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

method to insert a value at the end of the linked list

A

push

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

method to remove a value from the end of the linked list

A

pop

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

Stacks can be implemented in a variety of ways. Arrays can be a possible way. However we cannot implement stacks with the use of Linked lists. True or False.

A

False

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