Which Python is used by client to opens a TCP connection to hostname? s.accept() s.connect() s.bind() All of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Methods provided by Python for receiving and sending TCP messages. s.recv(), s.send() s.recvfrom(),s.sendto() Both (A) and (B) None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following functions results in case insensitive matching? re.U re.X re.I re.A TRUE ANSWER : ? YOUR ANSWER : ?
Is Python case sensitive when dealing with identifiers? no yes machine dependent None of the mentioned TRUE ANSWER : ? YOUR ANSWER : ?
Which of following Python Network/Internet modules supports HTTP protocol? urllib All of the mentioned httplib xmlrpclib TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements is true? 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 When there is a deviation from the rules of a programming language, a semantic error is thrown TRUE ANSWER : ? YOUR ANSWER : ?
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 of the following is the use of id() function in python? id returns the identity of the object None of the mentioned All of the mentioned Every object doesn’t have a unique id TRUE ANSWER : ? YOUR ANSWER : ?
In Python, which of these in not a core data type? Dictionary Class Lists Tuples TRUE ANSWER : ? YOUR ANSWER : ?