Q.1
Which function is used to write all the characters?
  • a) write()
  • b) writecharacters()
  • c) writeall()
  • d) writechar()
Q.2
In file handling, what does this terms means “r, a”?
  • a) read, append
  • b) append, read
  • c) write, append
  • d) none of the mentioned
Q.3
What is the use of “w” in file handling?
  • a) Read
  • b) Write
  • c) Append
  • d) None of the mentioned
Q.4
What is the use of “a” in file handling?
  • a) Read
  • b) Write
  • c) Append
  • d) None of the mentioned
Q.5
Which function is used to read all the characters?
  • a) Read()
  • b) Readcharacters()
  • c) Readall()
  • d) Readchar()
Q.6
Which function is used to read single line from file?
  • a) Readline()
  • b) Readlines()
  • c) Readstatement()
  • d) Readfullline()
Q.7
Which function is used to write a list of string in a file?
  • a) writeline()
  • b) writelines()
  • c) writestatement()
  • d) writefullline()
Q.8
Which function is used to close a file in python?
  • a) Close()
  • b) Stop()
  • c) End()
  • d) Closefile()
Q.9
Is it possible to create a text file in python?
  • a) Yes
  • b) No
  • c) Machine dependent
  • d) All of the mentioned
Q.10
Which of the following are the modes of both writing and reading in binary format in file?
  • a) wb+
  • b) w
  • c) wb
  • d) w+
0 h : 0 m : 1 s