Q1:

2026: 21 May Shift 1

Queue

Easy

Computer Science

The data structure queue supports which of the following operations?

(A) ENQUEUE

(B) DEQUEUE

(C) APPEND

(D) RAISE

Answer options
Option 4
Correct Answer
Explanation for 2026: 21 May Shift 1 CSE question 1

Q2:

2026: 21 May Shift 1

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()

Answer options
Option 3
Correct Answer
Explanation for 2026: 21 May Shift 1 CSE question 2

Q3:

2026: 20 May Shift 1

Queue

Easy

Computer Science

Match List-I with List-II

List-IList-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
Answer options
Option 4
Correct Answer
Explanation for 2026: 20 May Shift 1 CSE question 3

Q4:

2026: 20 May Shift 1

Queue

Easy

Computer Science

In a deque if insertion and deletion is done from the same end, it will behave as ________.

Answer options
Option 2
Correct Answer
Explanation for 2026: 20 May Shift 1 CSE question 4

Q5:

2026: 20 May Shift 1

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

Answer options
Option 1
Correct Answer
Explanation for 2026: 20 May Shift 1 CSE question 5

Q6:

2026: 20 May Shift 1

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

Answer options
Option 3
Correct Answer
Explanation for 2026: 20 May Shift 1 CSE question 6

Q7:

2026: 19 May Shift 1

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.

Answer options
Option 2
Correct Answer
Explanation for 2026: 19 May Shift 1 CSE question 7

Q8:

2026: 19 May Shift 1

Queue

Easy

Computer Science

Deletion operation in a queue is called ___________ and Insertion operation in a queue is called _______________.

Answer options
Option 3
Correct Answer
Explanation for 2026: 19 May Shift 1 CSE question 8

Q9:

2026: 19 May Shift 1

Queue

Easy

Computer Science

What happens when a deletion operation is performed on an empty queue?

Answer options
Option 2
Correct Answer
Explanation for 2026: 19 May Shift 1 CSE question 9

Q10:

2026: 19 May Shift 1

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()

Answer options

Q11:

2026: 18 May Shift 2

Queue

Easy

Computer Science

Which of the following is an incorrect statement for a deque?

Answer options

Q12:

2026: 18 May Shift 2

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")
Answer options

Q13:

2026: 18 May Shift 2

Queue

Easy

Computer Science

Which of the following operations is NOT supported by Deque?

Answer options

Q14:

2026: 18 May Shift 2

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

Answer options

Q15:

2026: 13 May Shift 2

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.

Answer options

Q17:

2026: 13 May Shift 2

Queue

Easy

Computer Science

Match List-I with List-II in consideration of operations on Deque

List-I DEQUE FUNCTIONList-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.
Answer options

Q18:

2026: 13 May Shift 2

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.

Answer options

Q19:

2026: 11 May Shift 2

Queue

Easy

Computer Science

__________ is an ordered linear data structure, following FIFO strategy.

Answer options

Q20:

2026: 11 May Shift 2

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.

Answer options

Q22:

2026: 11 May Shift 2

Queue

Easy

Computer Science

__________ is a data structure where elements can be added or removed at either ends but not in the middle.

Answer options

Q23:

2025: 3 June Shift 2

Queue

Easy

Computer Science

Which of the following is TRUE about deque?

Answer options

Q24:

2025: 3 June Shift 2

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.

Answer options

Q26:

2025: 30 May Shift 2

Queue

Medium

Computer Science

Identify the incorrect example related to application of queues.

Answer options

Q27:

2025: 30 May Shift 2

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.

Answer options

Q28:

2025: 30 May Shift 2

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.

Answer options

Q29:

2025: 27 May Shift 2

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)

Answer options

Q30:

2025: 27 May Shift 2

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.

Answer options