DIS_Quiz4 Flashcards

1
Q

Stacks must be implemented using an array.

A

False

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

There is no need to specify the capacity of a linked queue in its declaration.

A

True

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

Two variables are needed in a queue to represent the front and the back of the queue.

A

True

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

For an array-based queue “myBack == -1” returns true when the queue is empty.

A

False

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

A queue is a first-in-first-out (FIFO) data structure.

A

True

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

The array element at index 0 should always be the top of the stack for efficiency.

A

False

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

In a queue, the value of myFront is always less than myBack

A

False

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

A stack is a last-in-first-out (LIFO) data structure.

A

True

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

Stack is a suitable data structure for a base conversion program, which converts a decimal number to a binary number.

A

True

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