Python When is the finally block executed? only if some condition that has been specified is satisfied when there is an exception always when there is no exception only if some condition that has been specified is satisfied when there is an exception always when there is no exception ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is the use of id() function in python? 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 id returns the identity of the object ANSWER DOWNLOAD EXAMIANS APP
Python What is the use of duck typing? Less restriction on the type values that can be passed to a given method More restriction on the type values that can be passed to a given method Makes the program code smaller No restriction on the type values that can be passed to a given method Less restriction on the type values that can be passed to a given method More restriction on the type values that can be passed to a given method Makes the program code smaller No restriction on the type values that can be passed to a given method ANSWER DOWNLOAD EXAMIANS APP
Python How many except statements can a try-except block have? one more than one more than zero zero one more than one more than zero zero ANSWER DOWNLOAD EXAMIANS APP
Python Why are local variable names beginning with an underscore discouraged in Python Programming? they confuse the interpreter they are used to indicate global variables they slow down execution they are used to indicate a private variables of a class they confuse the interpreter they are used to indicate global variables they slow down execution they are used to indicate a private variables of a class ANSWER DOWNLOAD EXAMIANS APP
Python What is the result of cmp(3, 1) in python? True 1 0 False True 1 0 False ANSWER DOWNLOAD EXAMIANS APP