Which
of the following is true about linked list implementation of stack?
()
A: In
push operation, if new nodes are inserted at the beginning of linked
list, then in pop operation, nodes must be removed from end.
B: In
push operation, if new nodes are inserted at the end, then in pop
operation, nodes must be removed from the beginning.
C: Both
of the above
D: None
of the above
of the following is true about linked list implementation of stack?
()
A: In
push operation, if new nodes are inserted at the beginning of linked
list, then in pop operation, nodes must be removed from end.
B: In
push operation, if new nodes are inserted at the end, then in pop
operation, nodes must be removed from the beginning.
C: Both
of the above
D: None
of the above
举一反三
- You<br/>are given pointers to first and last nodes of a singly linked list,<br/>which of the following operations are dependent on the length of the<br/>linked list? () A: Delete<br/>the first element B: Insert<br/>a new element as a first element C: Delete<br/>the last element of the list D: Add<br/>a new element at the end of the list
- Consider<br/>the following operations performed on a stack of size 5 : Push ();<br/>Pop() ; Push(); Push(); Pop(); Push(); Pop();Pop(); Push () Which<br/>of the following statements is correct? () A: Underflow<br/>occurs B: Stack<br/>operations are performed smoothly C: Overflow<br/>occurs D: None<br/>of the above
- A<br/>stack is a special type of linked list in which objects can only be<br/>added to and removed from the top of the list.
- The element is inserted first and will be removed last in _____________.( ) A: none of the above B: linked list C: queue D: stack
- Owners'<br/>equity in a business increases as a result of which of the<br/>following? () A: Payments<br/>of cash to the owners. B: Losses<br/>from unprofitable operation of the business. C: Earnings<br/>from profitable operation of the business. D: Borrowing<br/>from a commercial bank.