Which is the correct expression for power(xy ) in Python? x^^y x^y x**y None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which Python is used by client to opens a TCP connection to hostname? s.accept() s.bind() All of the mentioned s.connect() TRUE ANSWER : ? YOUR ANSWER : ?
What error occurs when you execute the following Python code snippet? apple = mango NameError SyntaxError ValueError TypeError TRUE ANSWER : ? YOUR ANSWER : ?
In Python, which of these in not a core data type? Class Dictionary Tuples Lists TRUE ANSWER : ? YOUR ANSWER : ?
What data type is the object below in Python? L = [1, 23, 'hello', 1] dictionary array list tuple TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is the use of id() function in python? Every object doesn’t have a unique id All of the mentioned id returns the identity of the object None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
When is the finally block executed? when there is no exception only if some condition that has been specified is satisfied always when there is an exception TRUE ANSWER : ? YOUR ANSWER : ?
What does the function re.search do? matches a pattern at the start of the string such a function does not exist matches a pattern at any position in the string none of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
What type of data is: a=[(1,1),(2,4),(3,9)]? List of tuples Invalid type Array of tuples Tuples of lists TRUE ANSWER : ? YOUR ANSWER : ?
What arithmetic operators cannot be used with strings in Python? * – All of the mentioned + TRUE ANSWER : ? YOUR ANSWER : ?