When is the finally block executed? only if some condition that has been specified is satisfied when there is no exception always when there is an exception TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following creates a pattern object? re.assemble(str) re.create(str) re.compile(str) re.regex(str) TRUE ANSWER : ? YOUR ANSWER : ?
What does the function re.search do? matches a pattern at the start of the string matches a pattern at any position in the string none of the mentioned such a function does not exist TRUE ANSWER : ? YOUR ANSWER : ?
The character Dot (that is, ‘.’) in the default mode, matches any character other than _____________ newline percentage symbol (%) ampersand (&) caret (^) TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following results in a SyntaxError? “He said, ‘Yes!'” ‘”Once upon a time…”, she said.’ ”’That’s okay”’ ‘3\’ TRUE ANSWER : ? YOUR ANSWER : ?
When will the else part of try-except-else be executed? Always when an exception occurs in to except block when an exception occurs when no exception occurs TRUE ANSWER : ? YOUR ANSWER : ?
In order to store values in terms of key and value we use what Python core data type. tuple list set dictionary TRUE ANSWER : ? YOUR ANSWER : ?
Which is the correct expression for power(xy ) in Python? x**y x^^y None of the mentioned x^y TRUE ANSWER : ? YOUR ANSWER : ?
Which one of these is used for floor division in Python? // / None of the mentioned % TRUE ANSWER : ? YOUR ANSWER : ?