問題詳情
7. Which of the following statements about stack is TRUE?
(A)in a programming language that doesn't support pointers, there is no way to use stack.
(B)By using a stack, we can process data in a FILO order
(C)We use stack structure to handle print jobs in a printer server.
(D)We can use instruction PUSH to push a data to the bottom of a stack.
參考答案
答案:B
難度:簡單0.727
書單:沒有書單,新增
用户評論
【不叫賭俠的陳小刀】評論
正確的說法是 (B) 通過使用堆疊,我們可以按 FILO(先進後出)順序處理數據。堆疊是一種線性數據結構,遵循 LIFO(後進先出)原則。這意味著最後添加到堆棧疊的元素是第一個被刪除的元素。通常與堆疊關聯的操作是壓入(添加元素)和彈出(移除最頂層元素)。