2.1.4 - Thinking Logically Flashcards

Component 2

You may prefer our related Brainscape-certified flashcards:
1
Q

What are the examples of branching?

A

IF Statement

Case/Switch Statement

BRP / BRA / BRZ

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

What decisions are made in the enqueue and dequeue algorithms?

A

Enqueue – Is the queue already full?
Dequeue – Is anything left in the queue?

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

What decisions are made in the pop and push algorithms?

A

Push – Is the stack already full?
Pop – Is anything left in the stack?

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