Which Python is used by client to opens a TCP connection to hostname? s.bind() s.accept() All of the mentioned s.connect() TRUE ANSWER : ? YOUR ANSWER : ?
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5) return in Python? 0 1 2 4 TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of print 0.1 + 0.2 == 0.3 in python? True False Machine dependent Error TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is invalid variable in Python? _a = 1 None of the mentioned __str__ = 1 __a = 1 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 All raised standard exceptions must be handled in Python If any exception is thrown in try block, else block is executed The standard exceptions are automatically imported into Python programs TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a standard exception in Python? AssignmentError NameError IOError ValueError TRUE ANSWER : ? YOUR ANSWER : ?
To add a new element to a list we use which Python command? list1.add(5) list1.append(5) list1.addLast(5) list1.addEnd(5) TRUE ANSWER : ? YOUR ANSWER : ?
What does the function re.search do? none of the mentioned matches a pattern at the start of the string matches a pattern at any position in the string such a function does not exist TRUE ANSWER : ? YOUR ANSWER : ?
What type of data is: a=[(1,1),(2,4),(3,9)]? Tuples of lists List of tuples Invalid type Array of tuples TRUE ANSWER : ? YOUR ANSWER : ?
In Python, which of the following cannot be a variable? in __init__ on It TRUE ANSWER : ? YOUR ANSWER : ?