Skip to main content

Q.2.Define Queue and explain a. Array implementation of queue b. Linked list implementation of queue


Q.2.Define Queue and explain
a. Array implementation of queue
b. Linked list implementation of queue
Answer: - Like Stack, Queue is a linear structure which follows a particular order in which the operations are performed. The order is First in First out (FIFO).  A good example of queue is any queue of consumers for a resource where the consumer that came first is served first.
The difference between stacks and queues is in removing. In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added.
Operations on Queue:
Mainly the following four basic operations are performed on queue:
Enqueue: Adds an item to the queue. If the queue is full, then it is said to be an Overflow condition.
Dequeue: Removes an item from the queue. The items are popped in the same order in which they are pushed. If the queue is empty, then it is said to be an Underflow condition.
Front: Get the front item from queue.
Rear: Get the last item from queue.

(9899682018 What’s App and call)

YOU CAN CONTACT US 10 A.M TO 8 P.M

CHARGES – ASSIGNMENTS PER SEM 600, PER PAPER 150

Comments

Popular posts from this blog

MCA315- Advanced Computer Networks

  For Assignment Solution Contact Niraj kumar Call and whatsapp  (9899682018) Mail:-Nirajkumar294@gmail.com   ASSIGNMENT Drive Spring 2019 PROGRAM Master of Computer Application SEMESTER III SUBJECT CODE & NAME MCA315- Advanced Computer Networks BK ID B1650 NUMBER OF ASSIGNMNETS, CREDITS & MARKS 2, 4 Credits, 30 marks Each Note – The Assignment is divided into 2 sets. You have to answer all questions in both sets. Average of both assignments score scored by you will be considered as your IA score. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme. Q.No Assignment Set -1 Questions Marks Total Marks 1 Describe OSI Model. List and explain its seven layers. 3+7 10 2 Describe about DWDM. Explain the components of a basi...

MCA314- Technical writing

For Assignment Solution Contact Niraj kumar Call and whatsapp  (9899682018) Mail:-Nirajkumar294@gmail.com   ASSIGNMENT Drive Spring 2019 PROGRAM Master of Computer Application SEMESTER 3 SUBJECT CODE & NAME MCA314- Technical writing bk id B0955 NUMBER OF ASSIGNMNETS, CREDITS & MARKS 1, 2 Credits, 30 marks Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Q.No Assignment Questions Marks Total Mark s 1 What’s Audience Analysis? Technical Communication. Explain its significance in [5+5] [10] 2 Explain the role of a technical editor. Differentiate between Micro and Macro editing. [5+5] [10] 3 Explain the various phases involved in System Development Life Cycle (SDLC). [10] [1...

C#.NET/VB.NET interview questions

    C#.NET/VB.NET interview questions   Explain the elements of the .NET Framework.   a.           CLR (Common Language Runtime): It is a common managed environment where all the .net programs run. Supports multiple languages and has the garbage collector.   b.         .Net Framework Class Libraries:   For each source code compiler (VB.NET, C#.NET, etc.), there is a minimum set of coding standards that must be met. The minimum set of coding standards that must be met to compile .NET code into MSIL code is known as CLS - Common Language Specification. The role of the Common Language Specification is to ensure that all generated code (MSIL) that meets the minimum set of coding standards can operate successfully within the .NET framework. THE CTS (Common Type System) handles conversion of programming-language data types into .NET compatible (MSIL) data types. The implici...