Methods provided by Python for receiving and sending TCP messages. s.recv(), s.send() None of the mentioned Both (A) and (B) s.recvfrom(),s.sendto() TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following blocks will be executed whether an exception is thrown or not? except finally Else Assert TRUE ANSWER : ? YOUR ANSWER : ?
What type of data is: a=[(1,1),(2,4),(3,9)]? List of tuples Array of tuples Invalid type Tuples of lists TRUE ANSWER : ? YOUR ANSWER : ?
The expression a{5} will match _____________ characters with the previous regular expression. exactly 4 5 or more 5 or less exactly 5 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is the use of id() function in python? All of the mentioned None of the mentioned Every object doesn’t have a unique id id returns the identity of the object TRUE ANSWER : ? YOUR ANSWER : ?
To insert 5 to the third position in list1, we use which Python command? list1.add(3, 5) list1.insert(3, 5) list1.insert(2, 5) list1.append(3, 5) TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a standard exception in Python? AssignmentError IOError ValueError NameError TRUE ANSWER : ? YOUR ANSWER : ?
Which is the correct expression for power(xy ) in Python? None of the mentioned x^y x**y x^^y TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of print 0.1 + 0.2 == 0.3 in python? Machine dependent False Error True TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following creates a pattern object? re.compile(str) re.create(str) re.assemble(str) re.regex(str) TRUE ANSWER : ? YOUR ANSWER : ?