Q.1
Which is/are the basic I/O connections in file?
  • a) Standard Input
  • b) Standard Output
  • c) Standard Errors
  • d) All of the mentioned
Q.2
Which of the following mode will refer to binary data?
  • a) r
  • b) w
  • c) +
  • d) b
Q.3
What is the pickling?
  • a) It is used for object serialization
  • b) It is used for object deserialization
  • c) None of the mentioned
  • d) All of the mentioned
Q.4
What is unpickling?
  • a) It is used for object serialization
  • b) It is used for object deserialization
  • c) None of the mentioned
  • d) All of the mentioned
Q.5
What is the correct syntax of open() function?
  • a) file = open(file_name [, access_mode][, buffering])
  • b) file object = open(file_name [, access_mode][, buffering])
  • c) file object = open(file_name)
  • d) none of the mentioned
Q.6
What will be the output of the following Python code? fo = open("foo.txt", "wb")print "Name of the file: ", fo.namefo.flush()fo.close()
  • a) Compilation Error
  • b) Runtime Error
  • c) No Output
  • d) Flushes the file when closing them
Q.7
Correct syntax of file.writelines() is?
  • a) file.writelines(sequence)
  • b) fileObject.writelines()
  • c) fileObject.writelines(sequence)
  • d) none of the mentioned
Q.8
Correct syntax of file.readlines() is?
  • a) fileObject.readlines( sizehint );
  • b) fileObject.readlines();
  • c) fileObject.readlines(sequence)
  • d) none of the mentioned
0 h : 0 m : 1 s