Python Which of the following statements is true? All raised standard exceptions must be handled in Python 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 If any exception is thrown in try block, else block is executed All raised standard exceptions must be handled in Python 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 If any exception is thrown in try block, else block is executed ANSWER DOWNLOAD EXAMIANS APP
Python Which of these about a dictionary is false? The values of a dictionary can be accessed using keys Dictionaries are mutable Dictionaries aren’t ordered The keys of a dictionary can be accessed using values The values of a dictionary can be accessed using keys Dictionaries are mutable Dictionaries aren’t ordered The keys of a dictionary can be accessed using values ANSWER DOWNLOAD EXAMIANS APP
Python What data type is the object below in Python? L = [1, 23, 'hello', 1] tuple dictionary list array tuple dictionary list array ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is invalid variable in Python? _a = 1 __a = 1 __str__ = 1 None of the mentioned _a = 1 __a = 1 __str__ = 1 None of the mentioned 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 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 Less restriction on the type values that can be passed to a given method Makes the program code smaller 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 ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is not a standard exception in Python? NameError AssignmentError ValueError IOError NameError AssignmentError ValueError IOError ANSWER DOWNLOAD EXAMIANS APP