Skip to main content
Chapter 4 of 13
Revision Notes

Queue — Revision Notes

Himachal Pradesh Board · Class 12 · Computer Science

Queue revision notes for Himachal Pradesh Board Class 12 Computer Science: 4 topics in quick points. Includes Core Idea of Queue, Operations on Queue.

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 revision notes 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.

Key Topics to Revise

1

1. Core Idea of Queue

  • Queue is an ordered linear list of elements with different ends for adding and removing elements.
  • Queue follows the First-In-First-Out principle, also called First Come First Served.
  • The element that enters first leaves first.
2

2. Operations on Queue

  • ENQUEUE inserts a new element at the rear end of the queue.
  • DEQUEUE removes one element at a time from the front end of the queue.
  • IS EMPTY checks whether the queue has elements or not.
3

3. Queue Implementation in Python

  • myQueue is created as an empty list.
  • enqueue() uses append() to insert an element at the end of the list.
  • isEmpty() checks whether len(myQueue) is equal to zero.
4

4. Deque and Its Operations

  • Deque is a double-ended queue.
  • Addition and removal can happen from both ends: front or rear.
  • Deque can be used to implement a stack or a queue.

Get complete notes with diagrams and examples

Full Notes

Key Concepts

Queue is an ordered linear listFront is the end fromEnqueue is the insertion operationDequeue is the deletion operationOverflow happens when insertion is attempted

Frequently Asked Questions

What are the important topics in Queue for Himachal Pradesh Board 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 Himachal Pradesh Board Class 12 board exam.
How should I revise Queue for the Himachal Pradesh Board 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 Himachal Pradesh Board Class 12 Computer Science. Free to start, no card needed.