exercises for help with exercisesplease visit the sitewww wiley com/college/goodrich reinforcement - what values are returned during the following series of stack operationsif executed upon an initially empty stackpush( )push( )pop()push( )push( )pop()pop()push( )push( )pop()push( )push( )pop()pop()push( )pop()pop( - suppose an initially empty stack has executed total of push operations top operationsand pop operations of which raised empty errors that were caught and ignored what is the current size of sr- implement function with signature transfer(stthat transfers all elements from stack onto stack tso that the element that starts at the top of is the first to be inserted onto tand the element at the bottom of ends up at the top of - give recursive method for removing all the elements from stack - implement function that reverses list of elements by pushing them onto stack in one orderand writing them back to the list in reversed order - give precise and complete definition of the concept of matching for grouping symbols in an arithmetic expression your definition may be recursive - what values are returned during the following sequence of queue operationsif executed on an initially empty queueenqueue( )enqueue( )dequeue()enqueue( )enqueue( )dequeue()dequeue()enqueue( )enqueue( )dequeue()enqueue( )enqueue( )dequeue()dequeue()enqueue( )dequeue()dequeue( - suppose an initially empty queue has executed total of enqueue operations first operationsand dequeue operations of which raised empty errors that were caught and ignored what is the current size of qr- had the queue of the previous problem been an instance of arrayqueue that used an initial array of capacity and had its size never been greater than what would be the final value of the front instance variabler- consider what happens if the loop in the arrayqueue resize method at lines - of code fragment had been implemented asfor in range(self size)self data[kold[krather than old[walkgive clear explanation of what could go wrong