Python Why are local variable names beginning with an underscore discouraged in Python Programming? they are used to indicate a private variables of a class they slow down execution they are used to indicate global variables they confuse the interpreter they are used to indicate a private variables of a class they slow down execution they are used to indicate global variables they confuse the interpreter ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following blocks will be executed whether an exception is thrown or not? except Else Assert finally except Else Assert finally ANSWER DOWNLOAD EXAMIANS APP
Python Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 0 4 2 1 0 4 2 1 ANSWER DOWNLOAD EXAMIANS APP
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 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 ANSWER DOWNLOAD EXAMIANS APP
Python Which are the advantages of functions in python? All of the mentioned Improving clarity of the code Reducing duplication of code Decomposing complex problems into simpler pieces All of the mentioned Improving clarity of the code Reducing duplication of code Decomposing complex problems into simpler pieces ANSWER DOWNLOAD EXAMIANS APP
Python Which is the correct expression for power(xy ) in Python? x^y None of the mentioned x^^y x**y x^y None of the mentioned x^^y x**y ANSWER DOWNLOAD EXAMIANS APP