Skip to main content
Chapter 4 of 13
Flashcards

Queue

CBSE · Class 12 · Computer Science

Flashcards for Queue — CBSE Class 12 Computer Science. Quick Q&A cards covering key concepts, definitions, and formulas.

43 questions24 flashcards5 concepts
24 Flashcards
Card 1Queue Basics

What is a Queue data structure and what principle does it follow?

Answer

A Queue is an ordered linear data structure that follows the First-In-First-Out (FIFO) principle. Elements are added at one end called REAR (or TAIL) and removed from the other end called FRONT (or HE

Card 2Queue Applications

Give three real-life examples of Queue applications.

Answer

1. Students standing in queue for morning assembly 2. Customers forming a queue at bank cash counter 3. Vehicles queued at fuel pumps 4. Train ticket waiting list (W/L1, W/L2, etc.) 5. Customer servic

Card 3Queue Operations

What is the ENQUEUE operation in a queue?

Answer

ENQUEUE is the operation used to insert a new element into the queue at the rear end. Elements can be inserted until the queue reaches its capacity. Attempting to insert beyond capacity results in an

Card 4Queue Operations

What is the DEQUEUE operation in a queue?

Answer

DEQUEUE is the operation used to remove one element at a time from the front of the queue. Elements can be deleted until the queue becomes empty. Attempting to delete from an empty queue results in an

Card 5Queue Operations

List all five basic operations supported by a Queue data structure.

Answer

1. ENQUEUE - Insert element at rear 2. DEQUEUE - Remove element from front 3. IS EMPTY - Check if queue has any elements 4. PEEK - View front element without removing it 5. IS FULL - Check if queue ca

Card 6Python Implementation

Write the Python function to create an empty queue using list.

Answer

```python myQueue = list() ``` This creates an empty list that will serve as our queue data structure.

Card 7Python Implementation

Write the Python function for ENQUEUE operation.

Answer

```python def enqueue(myQueue, element): myQueue.append(element) ``` The append() function adds an element at the end of the list, which serves as the rear of the queue.

Card 8Python Implementation

Write the Python function for DEQUEUE operation.

Answer

```python def dequeue(myQueue): if not (isEmpty(myQueue)): return myQueue.pop(0) else: print('Queue is empty') ``` The pop(0) function removes the element from index 0, which i

+16 more flashcards available

Practice All

Get detailed flashcards for Queue

Super Tutor gives you interactive content for every chapter of CBSE Class 12 Computer Science — summaries, quizzes, flashcards, and more.

Try Super Tutor — It's Free

Frequently Asked Questions

What are the important topics in Queue for CBSE Class 12 Computer Science?

Queue covers several key topics that are frequently asked in CBSE Class 12 board exams. Focus on the core concepts listed on this page and practise related questions to build confidence.

Start by understanding all key concepts. Practise previous year questions from this chapter. Revise formulas and definitions regularly. Use flashcards for quick revision before the exam.

There are 24 flashcards for Queue covering key definitions, formulas, and concepts. Use them daily for 10–15 minutes for best results.

Sources & Official References

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