Python Which of the following statements is true? Overriding isn’t possible in Python A subclass method can be overridden by the superclass A private method in a superclass can be overridden A non-private method in a superclass can be overridden Overriding isn’t possible in Python A subclass method can be overridden by the superclass A private method in a superclass can be overridden A non-private method in a superclass can be overridden ANSWER DOWNLOAD EXAMIANS APP
Python What is the result of cmp(3, 1) in python? False True 1 0 False True 1 0 ANSWER DOWNLOAD EXAMIANS APP
Python When will the else part of try-except-else be executed? when no exception occurs when an exception occurs when an exception occurs in to except block Always when no exception occurs when an exception occurs when an exception occurs in to except block Always 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 of the following statements is true? All raised standard exceptions must be handled in Python If any exception is thrown in try block, else block is executed When there is a deviation from the rules of a programming language, a semantic error is thrown The standard exceptions are automatically imported into Python programs All raised standard exceptions must be handled in Python If any exception is thrown in try block, else block is executed When there is a deviation from the rules of a programming language, a semantic error is thrown The standard exceptions are automatically imported into Python programs 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