Python Which of the following statements is true? When there is a deviation from the rules of a programming language, a semantic error is thrown The standard exceptions are automatically imported into Python programs If any exception is thrown in try block, else block is executed All raised standard exceptions must be handled in Python When there is a deviation from the rules of a programming language, a semantic error is thrown The standard exceptions are automatically imported into Python programs If any exception is thrown in try block, else block is executed All raised standard exceptions must be handled in Python ANSWER DOWNLOAD EXAMIANS APP
Python Which one of these is used for floor division in Python? None of the mentioned % // / 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 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 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 To insert 5 to the third position in list1, we use which Python command? list1.add(3, 5) list1.insert(2, 5) list1.append(3, 5) list1.insert(3, 5) list1.add(3, 5) list1.insert(2, 5) list1.append(3, 5) list1.insert(3, 5) ANSWER DOWNLOAD EXAMIANS APP
Python When is the finally block executed? when there is no exception always when there is an exception only if some condition that has been specified is satisfied when there is no exception always when there is an exception only if some condition that has been specified is satisfied ANSWER DOWNLOAD EXAMIANS APP