All Exams Test series for 1 year @ ₹349 only
Question

Which of the following uses only increment operations for adding and removing element at either end?

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

Queues

In an array implementation, each linear data structure keeps index variables for its ends; the question is which structure only ever moves those indices forward (increment, modulo the size in a circular array).

Step 1 — Queue: insertion (enqueue) takes place at the rear, REAR = REAR + 1; deletion (dequeue) takes place at the front, FRONT = FRONT + 1. Elements are added at one end and removed at the other, and both pointers only increase.

Step 2 — Stack: push does TOP = TOP + 1 but pop does TOP = TOP − 1, so a decrement is required.

Step 3 — Deque (double-ended queue): inserting at the front needs FRONT = FRONT − 1 and deleting at the rear needs REAR = REAR − 1, so decrements are unavoidable.

Step 4 — Priority queue: deletion removes the highest-priority element, not the element at an end, and a heap implementation shrinks its size with a decrement and sifts elements up and down.

Queues option is correct.

Was this answer helpful?

Important Questions from Queue

  1. The breadth first search will use a _______ as a structure to hold nodes nor further processing.

  2. Let $u(x, t)$ be the solution of the following initial-boundary value problem 

                                  $\frac{\partial u}{\partial t} - \frac{\partial^2 u}{\partial x^2} = 0$, $\quad x \in (0,\pi)$, $t > 0$,

                                 $u(0,t) = u(\pi,t) = 0$, $u(x, 0) = \sin 4x \cos 3x$. 

    Then, for each $t > 0$, the value of $u(\frac{\pi}{4},t)$ is

  3. Match List I with List II
    List IList II
    A. Circular QueueI. Print Queue
    B. Priority QueueII. CPU Scheduling
    C. Double Ended QueueIII. Dijkstra algorithm
    D. Simple QueueIV. Palindrome checking

    Choose the correct answer from the options given below:
Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
297 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App