Skip to main content
Chapter 4 of 13
NCERT Solutions

Queue — NCERT Solutions

CBSE · Class 12 · Computer Science

NCERT question answers for Queue, CBSE Class 12 Computer Science: 14 textbook questions solved step by step. Covers Exercise.

43 questions68 flashcards10 formulas & key relations5 concepts

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.

An illustration demonstrating the First-In, First-Out (FIFO) principle of a queue using a real-world analogy like people in a line. It should clearly show elements entering at one end (rear) and leavi
Super Tutor

Learn better with visuals Super Tutor pairs illustrations like this with notes and quizzes for Queue.

Get started
14 Questions Solved · 1 Section

The first 7 solutions are open to read. The other 7 are free with a Super Tutor account. Unlock all 14 free in Super Tutor

Exercise

1(a)____________ is a linear list of elements in which insertion and deletion takes place from different ends.Show solution

A queue is a linear list of elements in which insertion and deletion take place from different ends.

Not sure why a step works? check your working in Super Tutor

1(b)Operations on a queue are performed in ____________ order.Show solution

Operations on a queue are performed in FIFO (First In First Out) order.

Not sure why a step works? check your working in Super Tutor

1(c)Insertion operation in a queue is called ____________ and deletion operation in a queue is called ____________.Show solution

The insertion operation in a queue is called enqueue and the deletion operation is called dequeue.

Not sure why a step works? check your working in Super Tutor

1(d)Deletion of elements is performed from ____________ end of the queue.Show solution

Deletion of elements is performed from the front end of the queue.

Not sure why a step works? check your working in Super Tutor

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

A queue follows FIFO, so elements are deleted in the same order in which they were inserted: A, S, D, F.

Not sure why a step works? check your working in Super Tutor

1(f)____________ is a data structure where elements can be added or removed at either end, but not in the middle.Show solution

A deque is a data structure where elements can be added or removed at either end, but not in the middle.

Not sure why a step works? check your working in Super Tutor

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

Since the received elements are z, b, v, x, c, the deletions must have been done by removing from both ends of the deque alternatively.

Not sure why a step works? check your working in Super Tutor

2Compare and contrast queue with stack.

Free with a Super Tutor account

3How does FIFO describe queue?

Free with a Super Tutor account

4Write a menu driven python program using queue, to implement movement of shuttlecock in it's box.

Free with a Super Tutor account

5How is queue data type different from deque data type?

Free with a Super Tutor account

6Show the status of queue after each operation
enqueue(34)
enqueue(54)
dequeue()
enqueue(12)
dequeue()
enqueue(61)
peek()
dequeue()
dequeue()
dequeue()
dequeue()
enqueue(1)

Free with a Super Tutor account

7Show the status of deque after each operation
peek()
insertFront(12)
insertRear(67)
deletionFront()
insertRear(43)
deletionRear()
deletionFront()
deletionRear()

Free with a Super Tutor account

8Write a python program to check whether the given string is palindrome or not, using deque. (Hint : refer to algorithm 4.1)

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 CBSE Class 12 Computer Science?
Key topics in Queue include Core Idea of Queue, Operations on Queue, Queue Implementation in Python, Deque and Its Operations. Study these first, then practise questions on each for the CBSE Class 12 board exam.
Are these NCERT Solutions for Queue free?
The first 7 of the 14 solutions on this page are open to read. The other 7 are free with a Super Tutor account — signing up is free and needs no card.
How should I revise Queue for the CBSE Class 12 board exam?
Learn the core ideas first, then work through the 43 practice questions on Queue. Revise definitions regularly and use flashcards for quick recall before the exam.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

For serious students

Get the full Queue chapter — start free.

Quizzes, flashcards, an AI doubt solver and a study plan for CBSE Class 12 Computer Science. Free to start, no card needed.