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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
