Python Which of the following blocks will be executed whether an exception is thrown or not? except Else Assert finally except Else Assert finally ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following creates a pattern object? re.create(str) re.compile(str) re.regex(str) re.assemble(str) re.create(str) re.compile(str) re.regex(str) re.assemble(str) ANSWER DOWNLOAD EXAMIANS APP
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 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 All raised standard exceptions must be handled in Python The standard exceptions are automatically imported into Python programs 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 ANSWER DOWNLOAD EXAMIANS APP
Python What is the output of print 0.1 + 0.2 == 0.3 in python? True Machine dependent Error False True Machine dependent Error False ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following results in a SyntaxError? ”’That’s okay”’ ‘3\’ ‘”Once upon a time…”, she said.’ “He said, ‘Yes!'” ”’That’s okay”’ ‘3\’ ‘”Once upon a time…”, she said.’ “He said, ‘Yes!'” ANSWER DOWNLOAD EXAMIANS APP
Python Which of these about a dictionary is false? 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 The values of a dictionary can be accessed using keys ANSWER DOWNLOAD EXAMIANS APP