Python
Which of the following statements is true?

A subclass method can be overridden by the superclass
A non-private method in a superclass can be overridden
A private method in a superclass can be overridden
Overriding isn’t possible in Python

ANSWER DOWNLOAD EXAMIANS APP

Python
What is the use of duck typing?

Less 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
More 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?

The standard exceptions are automatically imported into Python programs
All raised standard exceptions must be handled in Python
When there is a deviation from the rules of a programming language, a semantic error is thrown
If any exception is thrown in try block, else block is executed

ANSWER DOWNLOAD EXAMIANS APP