Q1:
2026: 21 May Shift 1
Computer Science
Queue
Easy
Computer Science
The data structure queue supports which of the following operations?
(A) ENQUEUE
(B) DEQUEUE
(C) APPEND
(D) RAISE
2026: 21 May Shift 1
Computer Science
Queue
Easy
Computer Science
The data structure queue supports which of the following operations?
(A) ENQUEUE
(B) DEQUEUE
(C) APPEND
(D) RAISE
2026: 21 May Shift 1
Computer Science
Queue
Medium
Computer Science
How many element will be present in the following queue after given set of operations are executed?
Given Queue : 1 4 7 9 11
Operations:
enqueue(10), enqueue(14) , dequeue(), dequeue() , enqueue(30), dequeue(), dequeue(), dequeue()
2026: 20 May Shift 1
Computer Science
Queue
Easy
Computer Science
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) Queue | (I) Accessing using index |
| (B) Stack | (II) Insertion from any end |
| (C) Deque | (III) Last In First Out |
| (D) Array | (IV) First In First Out |
2026: 20 May Shift 1
Computer Science
Queue
Easy
Computer Science
In a deque if insertion and deletion is done from the same end, it will behave as ________.
2026: 20 May Shift 1
Computer Science
Queue
Medium
Computer Science
What will be the front of the QUEUE after following operations are performed on the elements of the list [4, 5, 12, 21, 14, 6, 8, 10, 18]?
enqueue
enqueue
dequeue
enqueue
enqueue
enqueue
dequeue
dequeue
2026: 20 May Shift 1
Computer Science
Queue
Easy
Computer Science
To support enqueue and dequeue operations, which of the following operations are used?
(A) isEmpty
(B) isfull
(C) peek
(D) seek
2026: 19 May Shift 1
Computer Science
Queue
Easy
Computer Science
Which of the following statements are true ?
(A) In Deque arrangement, addition and removal of elements can happen at any end.
(B) DELETIONFRONT operation is to remove an element from the rear of the deque.
(C) INSERTREAR operation is to insert a new element at the rear of the deque.
(D) DELETIONREAR operation is to remove one element at a time from the rear of the deque.
2026: 19 May Shift 1
Computer Science
Queue
Easy
Computer Science
Deletion operation in a queue is called ___________ and Insertion operation in a queue is called _______________.
2026: 19 May Shift 1
Computer Science
Queue
Easy
Computer Science
What happens when a deletion operation is performed on an empty queue?
2026: 19 May Shift 1
Computer Science
Queue
Easy
Computer Science
Assume the queue is initially empty. What will be the result of the queue after performing the following operations in the given sequence?
enqueue(18)
enqueue(17)
enqueue(20)
dequeue()
enqueue(24)
dequeue()
2026: 18 May Shift 2
Computer Science
Queue
Easy
Computer Science
Which of the following is an incorrect statement for a deque?
2026: 18 May Shift 2
Computer Science
Queue
Easy
Computer Science
What operation on a queue is performed using the following code segment?
def op(myqueue):
if not(isEmpty(myqueue)):
return myqueue.pop(0)
else:
print ("Queue Empty")
2026: 18 May Shift 2
Computer Science
Queue
Easy
Computer Science
Which of the following operations is NOT supported by Deque?
2026: 18 May Shift 2
Computer Science
Queue
Easy
Computer Science
Consider an initially empty queue. Which of the following elements will be present in the queue after the execution of the following operations?
enqueue(a)
enqueue(b)
enqueue(c)
dequeue()
enqueue(d)
dequeue()
dequeue()
A. a
B. b
C. c
D. d
2026: 13 May Shift 2
Computer Science
Queue
Medium
Computer Science
Sequence the following steps of the algorithm for checking whether a string is a palindrome or not, using "deque":
(A) Insert the character in deque as a normal queue using INSERTREAR.
(B) Traverse these strings from left to right, one character at a time. Repeat this step and the above one for all characters in these strings.
(C) If these characters match, repeat these steps until the deque is empty or contains one character. Otherwise, stop, as string is not a palindrome.
(D) Remove one character from the front and one character from the rear end of the deque. Match these two removed characters.
2026: 13 May Shift 2
Computer Science
Queue
Easy
Computer Science
What does the following diagram represent?

2026: 13 May Shift 2
Computer Science
Queue
Easy
Computer Science
Match List-I with List-II in consideration of operations on Deque
| List-I DEQUE FUNCTION | List-II APPLICATION |
|---|---|
| (A) ENQUEUE | (I) To insert a new element at the end of the queue. |
| (B) DEQUEUE | (II) To add a new element at the beginning of the deque. |
| (C) INSERTFRONT | (III) To remove one element at a time from the end of the deque. |
| (D) DELETIONREAR | (IV) To remove one element at a time from the front of the queue. |
2026: 13 May Shift 2
Computer Science
Queue
Easy
Computer Science
Which of the following cases are TRUE?
(A) A queue is a linear data structure.
(B) A queue follows the LIFO rule.
(C) The enqueue operation may result in an overflow condition.
(D) In a queue, deletion is done at the front end.
2026: 11 May Shift 2
Computer Science
Queue
Easy
Computer Science
__________ is an ordered linear data structure, following FIFO strategy.
2026: 11 May Shift 2
Computer Science
Queue
Easy
Computer Science
Which of the following is correct in the context of a queue?
A. It is a linear list.
B. Insertions and deletions happen at separate ends.
C. The deletion of elements can be done at the rear end.
D. The insertion of the elements is done at the rear end.
2026: 11 May Shift 2
Computer Science
Queue
Easy
Computer Science
What will be the output of the following code?
queue= [1,2,3]
queue.append(4)
print(queue.pop(0))
2026: 11 May Shift 2
Computer Science
Queue
Easy
Computer Science
__________ is a data structure where elements can be added or removed at either ends but not in the middle.
2025: 3 June Shift 2
Computer Science
Queue
Easy
Computer Science
Which of the following is TRUE about deque?
2025: 3 June Shift 2
Computer Science
Queue
Medium
Computer Science
Arrange the steps of insertion of an element in a circular queue in the correct order.
(A) Check if the queue is FULL
(B) Insert the element at the rear position
(C) Update the rear pointer
(D) If the rear is at the last index, then set it to 0.
2025: 3 June Shift 2
Computer Science
Queue
Easy
Computer Science
A queue follows which data structure principle?
2025: 30 May Shift 2
Computer Science
Queue
Medium
Computer Science
Identify the incorrect example related to application of queues.
2025: 30 May Shift 2
Computer Science
Queue
Medium
Computer Science
A deque contains ‘a’, ‘p’, ‘l’, ‘m’ and ‘n’ . Elements received after deletion are ‘a’, 'n', ‘m’, ‘p’ and ‘l’. ________________ is the sequence of deletion operations performed on the deque.
2025: 30 May Shift 2
Computer Science
Queue
Medium
Computer Science
Sequence to check if a queue is empty and handle underflow in a programming context:
(A). Attempt to dequeue an element.
(B). Check if the queue is empty.
(C). Return an error message if empty.
(D). Proceed with dequeue if not empty.
2025: 27 May Shift 2
Computer Science
Queue
Easy
Computer Science
What will be the status of QUEUE after the end of following operations?
enqueue(34)
enqueue(54)
dequeue( )
enqueue(12)
enqueue(15)
dequeue( )
enqueue(71)
2025: 27 May Shift 2
Computer Science
Queue
Easy
Computer Science
The QUEUE data structure satisfies which of the following conditions?
(A) First In First Out (FIFO) principle.
(B) It is an ordered linear list of elements.
(C) It is an unordered linear list of elements.
(D) Insertion is done at front end and deletion is done at rear end.