मराठी

Look at the following code: def x (firstQueue): if len(firstQueue)==0: return True else: return False What does x represent?

Advertisements
Advertisements

प्रश्न

Look at the following code:

def x (firstQueue):
   if len(firstQueue)==0:
       return True
else:
       return False

What does x represent?

पर्याय

  • peek() function

  • size() function

  • dequeue() function

  • isEmpty() function

MCQ
Advertisements

उत्तर

isEmpty() function

Explanation:

x represents isEmpty() function because the function only checks whether the length is 0 or not.

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

Englishहिंदीमराठी


      Forgot password?
Use app×