Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 17 The operation ____ is used to remove the top element from the stack.

ID: 3773094 • Letter: Q

Question

QUESTION 17

The operation ____ is used to remove the top element from the stack.
A.pop
B.push
C.peek

QUESTION 19

A queuing system only consists of queues of objects waiting to be served.
True
False

QUESTION 31

The ____ operation is used to add an element onto the stack.
A.push
B.pop
C.add

QUESTION 38

A B-tree can be ____ in three ways: inorder, preorder, and postorder.
A.copied
B.reversed
C.traversed

QUESTION 42

Assuming deq is a deque object, the expression deq.push_front(elem) deletes the first element from deq.
True
False

Explanation / Answer

QUESTION 17

The operation _pop___ is used to remove the top element from the stack.
A.pop (ANSWER)
B.push
C.peek

QUESTION 19

A queuing system only consists of queues of objects waiting to be served. - True
True (ANSWERS)
False

QUESTION 31

The _push___ operation is used to add an element onto the stack.
A.push (ANSWER)
B.pop
C.add

QUESTION 38

A B-tree can be _traversed___ in three ways: inorder, preorder, and postorder.
A.copied
B.reversed
C.traversed (ANSWER)

QUESTION 42

Assuming deq is a deque object, the expression deq.push_front(elem) deletes the first element from deq.
True
False (ANSWER)