[Solved] 1 Meaning Acronym Fifo 2 Meaning Acronym Lifo 3 Type Queue Lifo Fifo Identify Following Fi Q37295913



1. What is the meaning of the acronym FIFO? 2. What is the meaning of the acronym LIFO? 3. Of which type is a queue, a LIFO or a FIFO? Identify each of the following as a FIFO or LIFO 4. Cars lined up at a toll both. Students turn in tests to a teacher and place them on top of a stack. The teacher grades the papers by selecting the next paper to grade from the bottom of the stack Students turn in tests to a teacher and place them on top of a stack. The teacher grades the papers by selecting the next paper to grade from the top of the stack. A dishwasher in a cafeteria places newly washed trays on top of a stack and patrons take their tray from the top of that stack Characters entered from a keyboard into a character buffer in a computer. a. b. c. d. e. 5. What is the difference between the peekFront and dequeue methods? 6. In the LinkedList implementation of the Queue interface, which LinkedList method is responsible for implementing the enqueue method? 7. In the LinkedList implementation of the Queue interface, which LinkedList method is responsible for implementing the dequeue method? 8. In the LinkedList implementation of the Queue interface, which LinkedList method is responsible for implementing the peekFront method? 9. Is the Queue interface a standard part of Java and if so, in what package is it found? 10. What is output by the following, assuming an empty queue object q already exists? g.enqueue Hello”); q.enqueue(“Hello again”); q.enqueue”Good bye”) System.out.print(q.dequeue); System.out.print(q,peekFront) System.out.printin(q.dequeue ): 11. What is output by the following code? LinkedListQueue q new LinkedL istQueue ) q enqueue): pre Java 5.0, q enqueuetnew Integertj. System.out printé Integer)q dequeueć pre Java 3.0. System.outprint tIntegerk dequeuet int Valuct 12. What is output by the following code? LinkedListQueue q- new LinkedListQueue(); int x-1; Integer iw = 37; //pre Java 5.0, Integer iw-new Integer(37); do x+t qenqueue(x): ilpre Java 5.0, qenqueuernew Integertc): iw = q.dequeue( ); q enqueuc(new Inte while(x 4); System.out.printindiw); I/pre Java 5.0, System.out println(iw.intValue)x 53-4 Use the following class for problems 13 and 14: public class ThelntQueue l public ThelntQueuefint maxSize) f intArray:: new int[maxSize). size 0; public void enqueuef int x) t int Array [sizel 53-4 Use the following class for problems 13 and 14: public class TheIntQueue f public TheIntQueue(int maxSize)( intArray new int[max Size]; size-0; public void enqueue( int x) ( intArray[size]-x; sizet+ other methods not shown… private int[] İntArray; private int size; 13. What is the greatest number of integers that could be stored if this class is instantiated with ThelntQueue iq new ThelntQueue(59): 14. After ist one calofte h Show transcribed image text 1. What is the meaning of the acronym FIFO? 2. What is the meaning of the acronym LIFO? 3. Of which type is a queue, a LIFO or a FIFO? Identify each of the following as a FIFO or LIFO 4. Cars lined up at a toll both. Students turn in tests to a teacher and place them on top of a stack. The teacher grades the papers by selecting the next paper to grade from the bottom of the stack Students turn in tests to a teacher and place them on top of a stack. The teacher grades the papers by selecting the next paper to grade from the top of the stack. A dishwasher in a cafeteria places newly washed trays on top of a stack and patrons take their tray from the top of that stack Characters entered from a keyboard into a character buffer in a computer. a. b. c. d. e. 5. What is the difference between the peekFront and dequeue methods? 6. In the LinkedList implementation of the Queue interface, which LinkedList method is responsible for implementing the enqueue method?
7. In the LinkedList implementation of the Queue interface, which LinkedList method is responsible for implementing the dequeue method? 8. In the LinkedList implementation of the Queue interface, which LinkedList method is responsible for implementing the peekFront method? 9. Is the Queue interface a standard part of Java and if so, in what package is it found? 10. What is output by the following, assuming an empty queue object q already exists? g.enqueue Hello”); q.enqueue(“Hello again”); q.enqueue”Good bye”) System.out.print(q.dequeue); System.out.print(q,peekFront) System.out.printin(q.dequeue ): 11. What is output by the following code? LinkedListQueue q new LinkedL istQueue ) q enqueue): pre Java 5.0, q enqueuetnew Integertj. System.out printé Integer)q dequeueć pre Java 3.0. System.outprint tIntegerk dequeuet int Valuct
12. What is output by the following code? LinkedListQueue q- new LinkedListQueue(); int x-1; Integer iw = 37; //pre Java 5.0, Integer iw-new Integer(37); do x+t qenqueue(x): ilpre Java 5.0, qenqueuernew Integertc): iw = q.dequeue( ); q enqueuc(new Inte while(x 4); System.out.printindiw); I/pre Java 5.0, System.out println(iw.intValue)x 53-4 Use the following class for problems 13 and 14: public class ThelntQueue l public ThelntQueuefint maxSize) f intArray:: new int[maxSize). size 0; public void enqueuef int x) t int Array [sizel
53-4 Use the following class for problems 13 and 14: public class TheIntQueue f public TheIntQueue(int maxSize)( intArray new int[max Size]; size-0; public void enqueue( int x) ( intArray[size]-x; sizet+ other methods not shown… private int[] İntArray; private int size; 13. What is the greatest number of integers that could be stored if this class is instantiated with ThelntQueue iq new ThelntQueue(59): 14. After ist one calofte h
Expert Answer
Answer to 1. What is the meaning of the acronym FIFO? 2. What is the meaning of the acronym LIFO? 3. Of which type is a queue, a L… . . .
OR

