Python Which of the following results in a SyntaxError? ‘3\’ ‘”Once upon a time…”, she said.’ ”’That’s okay”’ “He said, ‘Yes!'” ‘3\’ ‘”Once upon a time…”, she said.’ ”’That’s okay”’ “He said, ‘Yes!'” ANSWER DOWNLOAD EXAMIANS APP
Python Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 1 0 4 2 1 0 4 2 ANSWER DOWNLOAD EXAMIANS APP
Python What is the use of duck typing? No 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 Less 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 Makes the program code smaller More 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 ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is invalid variable in Python? __a = 1 None of the mentioned _a = 1 __str__ = 1 __a = 1 None of the mentioned _a = 1 __str__ = 1 ANSWER DOWNLOAD EXAMIANS APP
Python When is the finally block executed? when there is an exception when there is no exception always only if some condition that has been specified is satisfied when there is an exception when there is no exception always only if some condition that has been specified is satisfied ANSWER DOWNLOAD EXAMIANS APP
Python Which of the following is not a standard exception in Python? AssignmentError NameError ValueError IOError AssignmentError NameError ValueError IOError ANSWER DOWNLOAD EXAMIANS APP