Consider
the following operations performed on a stack of size 5 : Push ();
Pop() ; Push(); Push(); Pop(); Push(); Pop();Pop(); Push () Which
of the following statements is correct? ()
A: Underflow
occurs
B: Stack
operations are performed smoothly
C: Overflow
occurs
D: None
of the above
the following operations performed on a stack of size 5 : Push ();
Pop() ; Push(); Push(); Pop(); Push(); Pop();Pop(); Push () Which
of the following statements is correct? ()
A: Underflow
occurs
B: Stack
operations are performed smoothly
C: Overflow
occurs
D: None
of the above
举一反三
- Which<br/>of the following is true about linked list implementation of stack?<br/>() A: In<br/>push operation, if new nodes are inserted at the beginning of linked<br/>list, then in pop operation, nodes must be removed from end. B: In<br/>push operation, if new nodes are inserted at the end, then in pop<br/>operation, nodes must be removed from the beginning. C: Both<br/>of the above D: None<br/>of the above
- 执行以下指令后,(SP) =____,(A)=____,(B)=____。[br][/br]MOV SP,#70H[br][/br]MOV A,#60H[br][/br]MOV B,#0F8H[br][/br]PUSH ACC [br][/br]PUSH B[br][/br]POP ACC[br][/br]POP B
- 设有一个空栈,现有输入序列1,2,3,4,5,经过push,push,pop,push,pop,push,push,输出序列是(<br/>)。 A: 2,3 B: 3,4 C: 4,5 D: 2,4
- 输入序列为abc,若输出序列为bca,经过的栈操作为( ) A: push,pop,push,pop,push,pop B: push,push,push,pop,pop,pop C: push,push,pop,push,pop,pop D: push,pop,push,push,pop,pop
- 输入序列为ABC,可以变为CBA时,经过的栈操作为: push,pop,push,pop,push,pop|push,pop,push,push,pop,pop|push,push,pop,pop,push,pop|push,push,push,pop,pop,pop