मराठी

In the following code, function x is a function defined to: def x (glassStack): if isEmpty (glassStack): print ('underflow') return None else: return (glassStack.pop ())

Advertisements
Advertisements

प्रश्न

In the following code, function x is a function defined to:

         def x (glassStack):
                   if isEmpty (glassStack):
                         print ('underflow')
                         return None
               else:
                        return (glassStack.pop ())

पर्याय

  • Delete the topmost element if stack is not empty

  • Prevent underflow condition

  • Check if the stack is empty

  • All of the above

MCQ
Advertisements

उत्तर

All of the above

Explanation:

All of the options given are implemented by the function.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×