Python Which of the following is not a standard exception in Python? NameError ValueError AssignmentError IOError NameError ValueError AssignmentError IOError ANSWER DOWNLOAD EXAMIANS APP
Python Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 0 1 4 2 0 1 4 2 ANSWER DOWNLOAD EXAMIANS APP
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 Which of the following creates a pattern object? re.assemble(str) re.compile(str) re.regex(str) re.create(str) re.assemble(str) re.compile(str) re.regex(str) re.create(str) ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following blocks will be executed whether an exception is thrown or not? except finally Else Assert except finally Else Assert ANSWER DOWNLOAD EXAMIANS APP
Python To insert 5 to the third position in list1, we use which Python command? list1.add(3, 5) list1.insert(3, 5) list1.append(3, 5) list1.insert(2, 5) list1.add(3, 5) list1.insert(3, 5) list1.append(3, 5) list1.insert(2, 5) ANSWER DOWNLOAD EXAMIANS APP