Python Which of the following statements is true? A private method in a superclass can be overridden A subclass method can be overridden by the superclass A non-private method in a superclass can be overridden Overriding isn’t possible in Python A private method in a superclass can be overridden A subclass method can be overridden by the superclass A non-private method in a superclass can be overridden Overriding isn’t possible in Python ANSWER DOWNLOAD EXAMIANS APP
Python How many except statements can a try-except block have? zero more than one one more than zero zero more than one one more than zero ANSWER DOWNLOAD EXAMIANS APP
Python What does the function re.match do? matches a pattern at the start of the string none of the mentioned such a function does not exist matches a pattern at any position in the string matches a pattern at the start of the string none of the mentioned such a function does not exist matches a pattern at any position in the string ANSWER DOWNLOAD EXAMIANS APP
Python When is the finally block executed? only if some condition that has been specified is satisfied when there is no exception always when there is an exception only if some condition that has been specified is satisfied when there is no exception always when there is an exception 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 use of duck typing? 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 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