NCERT Class 12 Computer Science Computer Science: Chapter 4 — Queue

NCERT CBSE Class 12 Computer Science Computer Science Chapter 4 English PDF

This chapter introduces the Queue data structure in Computer Science, contrasting it with the Stack from the previous chapter. A Queue operates on the First-In-First-Out (FIFO) principle, also known as First Come First Served (FCFS). It's an ordered linear list where elements are added at one end (REAR/TAIL) and removed from the other (FRONT/HEAD). The chapter provides real-life examples like people in a queue for assembly, customers at a bank counter, and vehicles at a petrol pump. It also details applications such as train ticket waiting lists, customer service call queues, and traffic flow on a single-lane road. Understanding Queues is crucial for students learning data structures and their practical implementations in computer science.

Quick info

BoardCBSE / NCERT
ClassClass 12
SubjectComputer Science
BookComputer Science
ChapterChapter 4 — Queue
LanguageEnglish
PDF typeNCERT Textbook
SessionCBSE 2026
Reading time3 minutes
Word count445

Learning outcomes

Vocabulary

WordMeaning
QueueA linear data structure that follows FIFO principle.
FIFOFirst-In-First-Out principle, where the first element added is the first to be removed.
LIFOLast-In-First-Out principle, characteristic of Stacks.
FCFSFirst Come First Served, an alternative name for FIFO.
REARThe end of the queue where new elements are added (also called TAIL).
FRONTThe end of the queue from where elements are removed (also called HEAD).
DequeDouble-Ended Queue, a data structure where elements can be added or removed from both ends.

The complete chapter text is read in the official NCERT PDF viewer below (streamed from ncert.nic.in). This page provides NCERT Help study material — summary, vocabulary, practice questions, and FAQs — not a full reproduction of the textbook.

Read chapter online

This PDF is loaded from the official NCERT website (ncert.nic.in). Use the page buttons below to read — download is disabled on NCERT Help.

Read page by page below. PDF is streamed from the official NCERT website — no download button on this page.

Loading document …
Page of
Loading page …

Practice questions

  1. What is the principle followed by a Queue data structure? Answer: A Queue follows the First-In-First-Out (FIFO) principle.
  2. What are the two ends of a Queue usually called? Answer: The two ends are usually called FRONT (for removal) and REAR (for addition).
  3. Give one real-life example of a Queue. Answer: Students standing in a queue for morning assembly, or customers at a bank cash counter.
  4. What is another name for the REAR end of a Queue? Answer: Another name for the REAR end is TAIL.

Practice MCQs

Q1. Which principle does a Queue data structure follow?

Q2. In a Queue, new elements are added at which end?

Q3. Which end of the Queue is used for removing elements?

Q4. The FCFS approach is synonymous with which data structure principle?

Q5. Which of the following is NOT a typical application of a Queue?

Frequently asked questions

What is a Queue in Computer Science?

A Queue is a linear data structure that follows the First-In-First-Out (FIFO) principle, meaning the first element added to the queue will be the first one to be removed.

What is the difference between a Queue and a Stack?

A Stack follows the Last-In-First-Out (LIFO) principle, while a Queue follows the First-In-First-Out (FIFO) principle.

What are the two main operations performed on a Queue?

The two main operations are Enqueue (adding an element to the REAR) and Dequeue (removing an element from the FRONT).

Can you give a real-world example of a Queue?

Yes, examples include customers waiting in line at a ticket counter, vehicles at a toll booth, or calls waiting in a customer service center.

What does FIFO stand for?

FIFO stands for First-In-First-Out.

What is the REAR end of a Queue?

The REAR end, also known as the TAIL, is the position in the queue where new elements are added.

What is a Deque?

A Deque (Double-Ended Queue) is a data structure that allows elements to be added or removed from both the front and the rear ends.

Related resources

Important topics

Introduction to Queue Operations on Queue Implementation of Queue using Python First-In-First-Out (FIFO) principle Applications of Queue Introduction to Deque

Topics covered

Introduction to Queue Operations on Queue Implementation of Queue using Python Introduction to Deque Implementation of Deque using Python First-In-First-Out (FIFO) principle First Come First Served (FCFS) REAR and FRONT ends of a Queue TAIL and HEAD of a Queue Applications of Queue Queue vs Stack Double-Ended Queue (Deque)

NCERT Class 12 Computer Science — Computer Science — Chapter 4 — Queue. Verified by NCERT Help Editorial Team. Reviewed on 29 Jul 2026. Last updated 10 Aug 2026.