Python What is the use of duck typing? More restriction on the type values that can be passed to a given method 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 Makes the program code smaller More restriction on the type values that can be passed to a given method 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 Makes the program code smaller ANSWER DOWNLOAD EXAMIANS APP
Python What arithmetic operators cannot be used with strings in Python? + * – All of the mentioned + * – All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
Python What is the result of cmp(3, 1) in python? 1 False 0 True 1 False 0 True ANSWER DOWNLOAD EXAMIANS APP
Python In Python GUI programming, the method that leaves an impression of a turtle shape at the current location position() stamp() All of the mentioned shape() position() stamp() All of the mentioned shape() ANSWER DOWNLOAD EXAMIANS APP
Python When is the finally block executed? 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 only if some condition that has been specified is satisfied ANSWER DOWNLOAD EXAMIANS APP
Python What type of data is: a=[(1,1),(2,4),(3,9)]? Invalid type Array of tuples Tuples of lists List of tuples Invalid type Array of tuples Tuples of lists List of tuples ANSWER DOWNLOAD EXAMIANS APP