To insert 5 to the third position in list1, we use which Python command? list1.insert(2, 5) list1.insert(3, 5) list1.add(3, 5) list1.append(3, 5) TRUE ANSWER : ? YOUR ANSWER : ?
Which of following Python Network/Internet modules supports HTTP protocol? urllib httplib xmlrpclib All of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
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 All raised standard exceptions must be handled in Python If any exception is thrown in try block, else block is executed TRUE ANSWER : ? YOUR ANSWER : ?
What does the function re.match do? such a function does not exist none of the mentioned matches a pattern at any position in the string matches a pattern at the start of the string TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is invalid variable in Python? __a = 1 _a = 1 None of the mentioned __str__ = 1 TRUE ANSWER : ? YOUR ANSWER : ?
Say s=”hello” what will be the return value of type(s) in Python? bool str String int TRUE ANSWER : ? YOUR ANSWER : ?
Which are the advantages of functions in python? Improving clarity of the code Reducing duplication of code Decomposing complex problems into simpler pieces All of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following results in a SyntaxError? ‘3\’ “He said, ‘Yes!'” ”’That’s okay”’ ‘”Once upon a time…”, she said.’ TRUE ANSWER : ? YOUR ANSWER : ?
In Python GUI programming, the method that leaves an impression of a turtle shape at the current location shape() All of the mentioned stamp() position() TRUE ANSWER : ? YOUR ANSWER : ?
The character Dot (that is, ‘.’) in the default mode, matches any character other than _____________ newline ampersand (&) percentage symbol (%) caret (^) TRUE ANSWER : ? YOUR ANSWER : ?