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 The standard exceptions are automatically imported into Python programs When there is a deviation from the rules of a programming language, a semantic error is thrown All raised standard exceptions must be handled in Python If any exception is thrown in try block, else block is executed The standard exceptions are automatically imported into Python programs When there is a deviation from the rules of a programming language, a semantic error is thrown ANSWER DOWNLOAD EXAMIANS APP
Python What does the function re.search do? 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 matches a pattern at the start of the string none of the mentioned such a function does not exist 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 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 ANSWER DOWNLOAD EXAMIANS APP
Python What type of data is: a=[(1,1),(2,4),(3,9)]? Array of tuples Tuples of lists Invalid type List of tuples Array of tuples Tuples of lists Invalid type List of tuples ANSWER DOWNLOAD EXAMIANS APP
Python What is the output of print 0.1 + 0.2 == 0.3 in python? True Error False Machine dependent True Error False Machine dependent ANSWER DOWNLOAD EXAMIANS APP
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