हिंदी

The function isEmpty checks whether the queue is empty or not using the ______.

Advertisements
Advertisements

प्रश्न

The function isEmpty checks whether the queue is empty or not using the ______.

विकल्प

  • Index of the list

  • len() function

  • size() function

  • All of these

MCQ
रिक्त स्थान भरें
Advertisements

उत्तर

The function isEmpty checks whether the queue is empty or not using the len() function.

Explanation:

The function isEmpty determines whether or not the queue is empty by utilising the len() function. If the list length is zero, the queue is empty.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×