Python What type of data is: a=[(1,1),(2,4),(3,9)]? List of tuples Invalid type Array of tuples Tuples of lists List of tuples Invalid type Array of tuples Tuples of lists ANSWER DOWNLOAD EXAMIANS APP
Python What error occurs when you execute the following Python code snippet? apple = mango ValueError SyntaxError NameError TypeError ValueError SyntaxError NameError TypeError ANSWER DOWNLOAD EXAMIANS APP
Python When will the else part of try-except-else be executed? when no exception occurs Always when an exception occurs when an exception occurs in to except block when no exception occurs Always when an exception occurs when an exception occurs in to except block ANSWER DOWNLOAD EXAMIANS APP
Python What is the output of print 0.1 + 0.2 == 0.3 in python? False Machine dependent True Error False Machine dependent True Error ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is the use of id() function in python? All of the mentioned Every object doesn’t have a unique id None of the mentioned id returns the identity of the object All of the mentioned Every object doesn’t have a unique id None of the mentioned id returns the identity of the object ANSWER DOWNLOAD EXAMIANS APP
Python What is the use of duck typing? No restriction on the type values that can be passed to a given method Makes the program code smaller 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 No restriction on the type values that can be passed to a given method Makes the program code smaller 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 ANSWER DOWNLOAD EXAMIANS APP