Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which of the following will add to the end of a deque? pop append pople…

Question

which of the following will add to the end of a deque?
pop
append
popleft
appendleft

Explanation:

Brief Explanations

In data - structures like deque (double - ended queue), the append method is used to add an element to the end of the deque. pop removes an element from the end, popleft removes an element from the start, and appendleft adds an element to the start.

Answer:

B. append