English

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

Advertisements
Advertisements

Question

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

Options

  • Index of the list

  • len() function

  • size() function

  • All of these

MCQ
Fill in the Blanks
Advertisements

Solution

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
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×