Python Which are the advantages of functions in python? Decomposing complex problems into simpler pieces All of the mentioned Reducing duplication of code Improving clarity of the code Decomposing complex problems into simpler pieces All of the mentioned Reducing duplication of code Improving clarity of the code ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is invalid variable in Python? __str__ = 1 None of the mentioned __a = 1 _a = 1 __str__ = 1 None of the mentioned __a = 1 _a = 1 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 blocks will be executed whether an exception is thrown or not? Assert except Else finally Assert except Else finally ANSWER DOWNLOAD EXAMIANS APP
Python Say s=”hello” what will be the return value of type(s) in Python? String str bool int String str bool int 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