2.1.4 - Thinking Logically Flashcards
Component 2
1
Q
What are the examples of branching?
A
IF Statement
Case/Switch Statement
BRP / BRA / BRZ
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?
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?