Python Which of the following is the use of id() function in python? id returns the identity of the object Every object doesn’t have a unique id None of the mentioned All of the mentioned id returns the identity of the object Every object doesn’t have a unique id None of the mentioned All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
Python How many except statements can a try-except block have? more than one one more than zero zero more than one one more than zero zero ANSWER DOWNLOAD EXAMIANS APP
Python When will the else part of try-except-else be executed? when no exception occurs when an exception occurs in to except block Always when an exception occurs when no exception occurs when an exception occurs in to except block Always when an exception occurs ANSWER DOWNLOAD EXAMIANS APP
Python When is the finally block executed? always when there is an exception when there is no exception only if some condition that has been specified is satisfied always when there is an exception when there is no exception only if some condition that has been specified is satisfied ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is not a standard exception in Python? IOError ValueError AssignmentError NameError IOError ValueError AssignmentError NameError ANSWER DOWNLOAD EXAMIANS APP