Skip to main content

DS - UNIT-4 QUESTIONS

UNIT-4: TWO MARKS QUESTIONS

Q. no Question Description
1List the difference between stack and queue.
2What are the properties of queue?
3What is FIFO? How is it related to queues?
4What is scheduling?
5What is output restricted Dequeue list its operations.
6List the applications of queues.
7Mention the drawback of implementing queues using arrays.
8What is a circular queue?
9Write any two real-world examples where queues are used.
10What is the difference between a queue and a deque?
11List any two types of deques.

UNIT-4: FIVE MARKS QUESTIONS

Q. no Question Description
1Define Queue ADT. Explain basic operations of a Queue ADT.
2What are the basic operations in a queue? Explain them.
3Assume the Queue is empty. Apply the queue operations in the given order and display the queue contents after each operation. Enqueue(15), Enqueue(25), Enqueue(35), Dequeue(), Enqueue(40), Dequeue(), Dequeue(), Enqueue(55), Enqueue(65), Enqueue(75), Dequeue().
4Is the Queue subjected to underflow condition? If yes, at what order in the above-mentioned order it is occurred?
5Write a C program to implement Queue operations using linked list.
6Write a program for implementing Queue with arrays.
7Compare and contrast the Queue and Circular Queue and implement enqueue and dequeue operations.
8Discuss the advantages of Circular queue over Linear queue. Explain different operations performed on circular queue with suitable diagrams.
9Explain the implementation of Circular Queue operations using arrays.
10What is DEQUE? Explain different operations in DEQUE with memory representations.
11With the help of code or pseudocode, explain how to implement a deque using arrays.
12List and explain different applications of queue.
13Discuss the use of queues in CPU and disk scheduling. Provide examples of queue-based scheduling algorithms.
14Explain how queues are used in Breadth-First Search (BFS) algorithm with a suitable example.

Comments

Popular posts from this blog

23CS52 - DATA STRUCTURES (Lab)

Data Structures Lab is designed to provide hands-on experience in implementing and analyzing various data structures using the C programming language. Through a series of practical exercises, students learn to implement both linear and non-linear data structures such as arrays, linked lists, stacks, queues, trees, and hashing techniques.

23CS02 - DATA STRUCTURES (Theory)

Data Structures is a fundamental subject in computer science that deals with organizing, storing, and managing data efficiently. It helps in performing operations such as insertion, deletion, searching, and sorting in an optimized way.

23AD02 - ARTIFICIAL INTELLIGENCE

   Artificial Intelligence (AI) is a branch of computer science that enables machines to perform tasks that normally require human intelligence. It involves learning, reasoning, problem-solving, and decision-making using algorithms and data.  AI is widely used in applications such as virtual assistants, healthcare, robotics, and autonomous systems.