Queue — NCERT Solutions
Jammu & Kashmir Board · Class 12 · Computer Science
NCERT Solutions for Queue, Jammu & Kashmir Board Class 12 Computer Science: 14 textbook questions solved step by step. Covers EXERCISE — Chapter 4: Queue.
Interactive on Super Tutor
Studying Queue? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for NCERT solutions and more.
Free trial, no card needed.

Learn better with visuals Super Tutor pairs illustrations like this with notes and quizzes for Queue.
The first 7 solutions are open to read. The other 7 are free with a Super Tutor account.
EXERCISE — Chapter 4: Queue
1aFill in the blank: _______________ is a linear list of elements in which insertion and deletion takes place from different ends.Show solution
Answer: Queue
Explanation: A Queue is a linear data structure in which insertion takes place at one end (called the Rear) and deletion takes place at the other end (called the Front). Because insertion and deletion happen at different ends, it follows the FIFO (First In First Out) principle.
1bFill in the blank: Operations on a queue are performed in _______________ order.Show solution
Answer: FIFO (First In First Out)
Explanation: In a queue, the element that is inserted first is the one that gets deleted first. This ordering is called FIFO — First In, First Out. For example, if A, B, C are inserted in that order, A will be the first one to be deleted.
1cFill in the blank: Insertion operation in a queue is called _______________ and deletion operation in a queue is called _______________.Show solution
Answer: Insertion operation → enqueue; Deletion operation → dequeue
Explanation:
- enqueue: adds a new element at the Rear end of the queue.
- dequeue: removes an element from the Front end of the queue.
1dFill in the blank: Deletion of elements is performed from _______________ end of the queue.Show solution
Answer: Front
Explanation: In a queue, following the FIFO strategy, deletion (dequeue operation) always happens from the Front end, while insertion (enqueue) happens at the Rear end.
1eFill in the blank: Elements 'A', 'S', 'D' and 'F' are present in the queue, and they are deleted one at a time, _______________ is the sequence of element received.Show solution
Answer: A, S, D, F
Explanation: A queue follows FIFO order. The elements are present as:
When deleted one at a time from the Front, the sequence received is: A → S → D → F.
1fFill in the blank: _______________ is a data structure where elements can be added or removed at either end, but not in the middle.Show solution
Answer: Deque (Double-Ended Queue)
Explanation: A Deque (Double-Ended Queue) allows insertion and deletion at both the Front and the Rear ends. However, no insertion or deletion is allowed in the middle. It is a generalised version of both stack and queue.
1gFill in the blank: A deque contains 'z', 'x', 'c', 'v' and 'b'. Elements received after deletion are 'z', 'b', 'v', 'x' and 'c'. _______________ is the sequence of deletion operation performed on deque.Show solution
Answer: deletionFront, deletionRear, deletionRear, deletionRear, deletionFront
Explanation:
Initial deque (Front → Rear):
| Step | Operation | Element Removed | Deque Status |
|---|---|---|---|
| 1 | deletionFront() | z | x, c, v, b |
| 2 | deletionRear() | b | x, c, v |
| 3 | deletionRear() | v | x, c |
| 4 | deletionRear() | x | c |
| 5 | deletionFront() | c | (empty) |
Sequence of operations: deletionFront, deletionRear, deletionRear, deletionRear, deletionFront
Free with a Super Tutor account
Free with a Super Tutor account
Free with a Super Tutor account
Free with a Super Tutor account
Free with a Super Tutor account
Free with a Super Tutor account
Free with a Super Tutor account
7 more solved questions in Queue
They are free with a Super Tutor account, along with practice quizzes and flashcards for this chapter. Free to start, no card needed.
Frequently Asked Questions
What are the important topics in Queue for Jammu & Kashmir Board Class 12 Computer Science?
Are these NCERT Solutions for Queue free?
How should I revise Queue for the Jammu & Kashmir Board Class 12 board exam?
Sources & Official References
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Queue
Practice Quiz
Test yourself with a quick quiz
Important Questions
Exam-style questions with answers
Revision Notes
Key points for last-minute revision
Formula Sheet
The chapter's formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect
Study Plan
Step-by-step plan for this chapter
Flashcards
Quick-fire cards for active recall
Syllabus
What topics to cover
For serious students
Get the full Queue chapter — start free.
Quizzes, flashcards, an AI doubt solver and a study plan for Jammu & Kashmir Board Class 12 Computer Science. Free to start, no card needed.